摘要: // 待请求的地址string url = "http://www.cnblogs.com"; // 创建 WebRequest 对象,WebRequest 是抽象类,定义了请求的规定,// 可以用于各种请求,例如:Http, Ftp 等等。// HttpWebRequest... 阅读全文
posted @ 2015-10-10 10:00 逆风的刃 阅读(313) 评论(0) 推荐(0) 编辑
摘要: LASTYEAR ) return alert("请输入1936-2031有效年份"); sm = SolarMonth - 1; if ( sm 11 ) return alert("请输入有效月份"); leap = GetLeap( SolarYear ); if ( sm == 1... 阅读全文
posted @ 2015-10-10 09:59 逆风的刃 阅读(387) 评论(0) 推荐(0) 编辑
摘要: 简洁版发送://web.config ---文件 //Defult.aspx ---文件 邮件发送 接收人: 邮件标题:... 阅读全文
posted @ 2015-10-09 15:42 逆风的刃 阅读(2629) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Data.SqlClient;using System.Linq;using System.Text;using System.Threading.Tasks;namespace 数... 阅读全文
posted @ 2015-08-07 15:55 逆风的刃 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 运用if语句完成对年、月、日的判断。 Console.WriteLine("其输入年份:"); int a = int.Parse(Console.ReadLine()); Console.WriteLine("请输入月份:"); ... 阅读全文
posted @ 2015-06-04 20:02 逆风的刃 阅读(185) 评论(0) 推荐(0) 编辑
摘要: 1.求解一元二次方程Console.WriteLine("求解一元二次方程:a*x*x+b*x+c=0"); Console.Write("请输入 a="); double a = double.Parse(Console.ReadLine()); Co... 阅读全文
posted @ 2015-06-02 09:02 逆风的刃 阅读(407) 评论(0) 推荐(0) 编辑
摘要: 题目:输入一个24小时制的整数时间,判断所在时间段。 int a,b; a = int.Parse(Console .ReadLine());//输入的时间 b = 12; string s; s = a-b > 0 ?a-b+"pm" :a+"am" ; Console.... 阅读全文
posted @ 2015-06-01 08:54 逆风的刃 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 一、c#项目的组成结构1、项目结构 1.1 项目后缀 .config--配置文件(存放配置参数文件) .csproj--项目文件(管理文件项) .sln--解决方案文件(管理项目) .cs--源文件(程序代码) 注:后缀不同代表文件类型也不同,这些文件后缀类型会在“解决方案资源管... 阅读全文
posted @ 2015-05-29 15:55 逆风的刃 阅读(155) 评论(0) 推荐(0) 编辑