摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication1{ class Program { static v... 阅读全文
posted @ 2015-10-29 16:48 On The Way …… 阅读(46671) 评论(1) 推荐(2) 编辑
摘要: 1、用字符串分隔:usingSystem.Text.RegularExpressions;stringstr="aaajsbbbjsccc";string[]sArray=Regex.Split(str,"js",RegexOptions.IgnoreCase);foreach(stringiins... 阅读全文
posted @ 2015-10-29 16:47 On The Way …… 阅读(259) 评论(0) 推荐(0) 编辑
摘要: staticvoid Main(string[] args){ string s =""; //(1)字符访问(下标访问s[i]) s ="ABCD"; Console.WriteLine(s[0]); // 输... 阅读全文
posted @ 2015-10-29 16:46 On The Way …… 阅读(156) 评论(0) 推荐(0) 编辑
摘要: System.DateTime currentTime=new System.DateTime();1 取当前年月日时分秒currentTime=System.DateTime.Now;2 取当前年int 年=currentTime.Year;3 取当前月int 月=currentTime.Mont... 阅读全文
posted @ 2015-10-29 16:41 On The Way …… 阅读(673) 评论(0) 推荐(0) 编辑