DownLoadPageFromWeb class Program { /// <summary> /// 异步回调函数 /// </summary> /// <param name="ar"></param> static void DownloadFinished(IAsyncResult ar ...
分类:
Web程序 时间:
2016-08-03 01:29:39
阅读次数:
251
函数 有四种格式 格式1:无参无返<summary>累加求和,不需要参数,没有返回值</summary> public void LeiJia() {累加求和 Console.Write("请输入一个正整数:"); int a = int.Parse(Console.ReadLine()); int ...
分类:
其他好文 时间:
2016-08-01 17:15:41
阅读次数:
143
/// <summary> /// 获取所有img里面的src路径 /// </summary> /// <param name="sHtmlText"></param> /// <returns></returns> public static string[] GetHtmlImageUrlLi ...
分类:
Web程序 时间:
2016-08-01 15:17:32
阅读次数:
262
1.自定义固定协议头部。格式:([head][body][filestream]) /// <summary> /// 数据包头部 /// </summary> [StructLayout(LayoutKind.Sequential, Pack = 1)] public struct ZsyData ...
分类:
其他好文 时间:
2016-08-01 11:56:20
阅读次数:
113
c# 动态调用.net编写的webservices接口 创建类WebServiceHelper: public class WebServiceHelper { #region 动态调用WebService动态调用地址 /// < summary> /// 动态调用web服务 /// < /summ ...
注释/// <summary> /// 请输入邮箱格式,判断邮箱格式是否正确 /// </summary> /// <param name="args"></param> //格式一 无参无返 public void youxiang() { Console.Write("请输入邮箱:"); str ...
分类:
其他好文 时间:
2016-07-31 17:30:35
阅读次数:
206
Given a sorted integer array without duplicates, return the summary of its ranges. For example, given [0,1,2,4,5,7], return ["0->2","4->5","7"]. Analy ...
分类:
其他好文 时间:
2016-07-31 01:44:57
阅读次数:
116
1 /// <summary> 2 /// 九宫格算法 3 /// </summary> 4 public void NineTable() 5 { 6 //创建一个三阶方阵 7 int[,] arr = new int[3, 3]; 8 //第3行的行下标 9 int a = 2; 10 //第2 ...
分类:
编程语言 时间:
2016-07-30 22:28:57
阅读次数:
383
/// <summary> /// 将异常打印到LOG文件 /// </summary> /// <param name="ex">异常</param> public static void WriteLog(Exception ex) { //如果日志文件为空,则默认在Debug目录下新建YYYY ...
目录: 1.1 编写一个简单的C++程序 1.2 Input/Output 的首次见面 1.3 关于评论(comments)的一句话 1.4 控制的流失 (Flow of Control) 1.5 介绍课程 1.6 Bookstore 程序 章节总结(Chapter Summary) 术语表(Def ...
分类:
其他好文 时间:
2016-07-30 14:54:58
阅读次数:
223