摘要: string str = "af adsf e4afef3 _asdf $adsf"; char[] chr = { ' ', '_', '$' }; //StringSplitOptions.RemoveEmptyEntries去掉空格 ... 阅读全文
posted @ 2015-05-13 22:34 自由无风 阅读(176) 评论(0) 推荐(0) 编辑
摘要: public static void Main(string[] args) { Stopwatch sw = new Stopwatch(); //程序计时器 StringBuilder str = new StringBuilder... 阅读全文
posted @ 2015-05-13 22:21 自由无风 阅读(231) 评论(0) 推荐(0) 编辑
摘要: string s = "asdf"; //字符转char char[] c = s.ToCharArray(); Console.WriteLine(s[0]); //char转string string s1 =... 阅读全文
posted @ 2015-05-13 22:12 自由无风 阅读(7655) 评论(0) 推荐(0) 编辑
摘要: 项目右键引用 ,添加要引用的然后在代码用 using 绰用 阅读全文
posted @ 2015-05-13 21:45 自由无风 阅读(1729) 评论(0) 推荐(0) 编辑
摘要: public class Students { //创建对像时使用 public Students(string name, int age, char gender, int englist, int chinese, int math) { ... 阅读全文
posted @ 2015-05-13 21:16 自由无风 阅读(1060) 评论(0) 推荐(0) 编辑