摘要: static void Main(string[] args) { Console.WriteLine("*********"); BasicStringFunctionality(); Console.ReadLine(); } private static void BasicStringFunctionality() { string fisstName = "Freddy"; //转换成大写 ... 阅读全文
posted @ 2013-04-27 11:46 zengxw 阅读(95) 评论(0) 推荐(0) 编辑
摘要: static void Main(string[] args) { Console.WriteLine("*********"); UseDatesAndTimes(); Console.ReadLine(); } private static void UseDatesAndTimes() { DateTime dt = new DateTime(2010, 10, 17); //一个月中的哪一天 ... 阅读全文
posted @ 2013-04-27 11:33 zengxw 阅读(209) 评论(0) 推荐(0) 编辑
摘要: static void Main(string[] args) { Console.WriteLine("*********"); CharFunctionality(); Console.ReadLine(); } private static void CharFunctionality() { char myChar = 'a'; //是否是数字 Console.WriteLine("c... 阅读全文
posted @ 2013-04-27 11:17 zengxw 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2013-04-27 10:58 zengxw 阅读(97) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2013-04-27 10:12 zengxw 阅读(178) 评论(0) 推荐(0) 编辑
摘要: static void Main(string[] args) { Console.WriteLine("*********"); NewingDataTypes(); Console.ReadLine(); } private static void NewingDataTypes() { bool b = new bool(); int i = new int(); double d = ... 阅读全文
posted @ 2013-04-27 10:08 zengxw 阅读(122) 评论(0) 推荐(0) 编辑
摘要: static void Main(string[] args) { Console.WriteLine("*********"); FromatNumbericalData(); DisplayMessage(); Console.ReadLine(); } private static void DisplayMessage() { string userMessage = string.Format("1000... 阅读全文
posted @ 2013-04-27 09:52 zengxw 阅读(106) 评论(0) 推荐(0) 编辑
摘要: static void Main(string[] args) { Console.WriteLine("aadjflajdsfasd"); GetUserData(); Console.ReadLine(); } private static void GetUserData() { Console.WriteLine("peadjfldyou name"); string userNam... 阅读全文
posted @ 2013-04-27 09:44 zengxw 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 获取命令数组:system.Environment.GetcommandineArgs();获取本纪驱动system.Environment.getlogicaldrives();本纪系统信息Systme.Environemt.OSVersion; 阅读全文
posted @ 2013-04-25 23:04 zengxw 阅读(96) 评论(0) 推荐(0) 编辑
摘要: 写入文档的例子class WriteTextFile { static void Main() { //如果文件不存在,则创建;存在则覆盖 //该方法写入字符数组换行显示 string[] lines = { "first line", "second line", "third line","第四行" }; System.IO.File.WriteAllLines(@"C:\testDir\test.txt", lines, Encoding.UTF8); ... 阅读全文
posted @ 2013-04-22 22:23 zengxw 阅读(243) 评论(0) 推荐(0) 编辑