摘要: 1.win7安装IIS后,本地测试没有问题,说明IIS的配置正确,如果本地测试有问题,先检查IIS安装配置情况。 2、检查计算机网络情况,发现本地网络正常。如果win7不能访问网络,请先正确配置网络连接。 3、检查防火墙设置,本文遇到的错误就是由于Win7自带的防火墙阻止了网站程序的端口,使得远程用户不能访问IIS。这里有两种方法解决。A、关闭防火墙。控制面板-Windows防火墙-打开或关闭Windows防火墙(不推荐) win7-防火墙 B、打开:控制面板-Windows防火墙-高级设置-入站规则,在入站规则窗口中找到”BranchCache内容检索(http-in)“选项并启用此规则。这 阅读全文
posted @ 2012-11-16 16:24 MFT 阅读(414) 评论(0) 推荐(0) 编辑
摘要: Happy 2004Time Limit:1sMemory limit:32MAccepted Submit:142Total Submit:279Consider a positive integer X,and let S be the sum of all positive integer divisors of 2004X. Your job is to determine S modulo 29 (the rest of the division of S by 29).Take X = 1 for an example. The positive integer divisors 阅读全文
posted @ 2012-11-15 23:05 MFT 阅读(208) 评论(0) 推荐(0) 编辑
摘要: #include <iostream>using namespace std;int b[1000];int main(){int n,m;cin>>n>>m; for (int i=1;i<=n;i++) { b[i]=i; } int t=1,i=1; int x=0; while (b[t]!=0) { if (i==m) { cout<<b[t]<<" "; b[t]=0; x++; i=0; } t++; i++; if(x==n) { // cout<<b[t]; break; } w 阅读全文
posted @ 2012-11-15 23:03 MFT 阅读(165) 评论(0) 推荐(0) 编辑
摘要: //============================================================================// Name : 01k_code.cpp// Author : mtt// Version :// Copyright : Your copyright notice// Description : Hello World in C++, Ansi-style//============================================================================#include < 阅读全文
posted @ 2012-11-15 22:35 MFT 阅读(196) 评论(0) 推荐(0) 编辑
摘要: 使用.netmail发送邮件,在配置文件里设置mailSettings,但不能正常工作,然后在测试页面上显示配置内容,发现获取的全是空,这是什么原因啊XML/HTML code?1234567891011121314151617181920212223242526272829303132333435363738394041424344<?xmlversion="1.0"?><configuration><appSettings><add/></appSettings><connectionStrings/&g 阅读全文
posted @ 2012-11-14 16:19 MFT 阅读(496) 评论(0) 推荐(1) 编辑
摘要: 1 163邮箱 HOST:smtp.163.compublic staticstring CreateTimeoutTestMessage(string server){ string Success = "发送成功"; try { string _to = "1035092449@qq.com";string _from = "young-20@163.com"; string _subject = "Using the new SMTP client.";string _body = @"Using 阅读全文
posted @ 2012-11-14 15:49 MFT 阅读(13340) 评论(1) 推荐(4) 编辑
摘要: 想写一个发送邮件的程序, MailAddress From = new MailAddress("xxxxxx@sina.com"); MailAddress To = new MailAddress("xxxxx@qq.com"); MailMessage myMail = new MailMessage(From, To); myMail.Subject = "这是x发来的邮件"; myMail.Body = "试试功能"; SmtpClient client = new SmtpC... 阅读全文
posted @ 2012-11-14 15:07 MFT 阅读(340) 评论(0) 推荐(0) 编辑
摘要: cout.precisionHintIn C++ language, cout.precision is used to set the effective numbers of output.You may use it in the program. E.g. cout.precision(15). In C language, format "%.2lf" may be used在JOJ 1001的hint中看到的,这样就可以提高cout的精度 阅读全文
posted @ 2012-11-13 21:47 MFT 阅读(290) 评论(0) 推荐(0) 编辑
摘要: 我只知道cout.setf()是用来设志位的,cout.precision()是用来设置精度的,但它们的作用是表现在哪些方面呢? 如下程序: …… int main() { cout.precision(2);//难道是设置精度为2? cout.setf(ios::fixed, ios:: floatfield); //这个不明白是什么意思? int i = 10,j = 20; cout << "i, j = " << ", " << j << ".\n"; Swap (i, j); 阅读全文
posted @ 2012-11-13 21:45 MFT 阅读(2612) 评论(0) 推荐(0) 编辑
摘要: ASP.NET登录控件概述 心情:开心 日期:2008-12-20 19:33转发 ASP.NET登录控件概述使用ASP.NET 2.0提供的这些控件,我们只需要进行简单的设置而无需写一行代码就能提供“注册”、“登录”、“修改密码”和“取回密码”等与账户密切相关的一些操作。如图15-26所示,可以看到IDE工具箱中的一套登录控件。图15-26 ASP.NET登录控件15.6.2 登录控件首先添加一个Login.aspx,在页面上放入一个Login控件,然后使用属性窗口对控件进行配置。<asp:Login ID="Login1" runat="server&q 阅读全文
posted @ 2012-11-11 23:04 MFT 阅读(2342) 评论(0) 推荐(0) 编辑