随笔分类 -  C#

摘要:using System.Diagnostics;namespace CH03{ class Program { static void Main(string[] args) { decimal decimalNumber = 4.2m; double doubleNumber1 = 0.1f * 42f; ... 阅读全文
posted @ 2011-11-29 16:48 jacky_j2ee 阅读(168) 评论(0) 推荐(0)
摘要:namespace CH03{ class Program { static void Main(string[] args) { int n = '3' + '4'; char c = (char)n; System.Console.WriteLine(n); Syst... 阅读全文
posted @ 2011-11-29 16:26 jacky_j2ee 阅读(109) 评论(0) 推荐(0)
摘要:namespace CH02{ class Program { static void Main(string[] args) { string[] languages; languages = new string[] { "1" }; int[] style1 = new int[1]; ... 阅读全文
posted @ 2011-11-29 15:10 jacky_j2ee 阅读(120) 评论(0) 推荐(0)
摘要:namespace CH02{ class Program { static void Main(string[] args) { int[] forSort = new int[] { 1, 2, 3, 9, 8, 7, 6 }; Syst... 阅读全文
posted @ 2011-11-29 15:04 jacky_j2ee 阅读(269) 评论(0) 推荐(0)
摘要:string idTag = "123-890";string theTag = idTag;2个变量将指向同一个对象。 阅读全文
posted @ 2011-09-04 09:26 jacky_j2ee 阅读(117) 评论(0) 推荐(0)
摘要:System.Console.WriteLine(42.ToString());即使最基本的类型都是一个对象~ 阅读全文
posted @ 2011-09-02 20:49 jacky_j2ee 阅读(108) 评论(0) 推荐(0)
摘要:正确方式 int[,,,] temp = new int[2,3,4,5]; temp = new int[,,,] { { { {1, 2, 3, 4, 5}, {1, 2, 3, 4, 5}, {1, 2, 3, 4, 5}, {1, 2, 3, 4, 5} }, { {1, 2, 3, 4, 5}, {1, 2, 3, 4, 5}, {1, 2, 3, 4, 5}, {1, 2, 3, 4, 5}, }, { {1, 2, 3, 4, 5},... 阅读全文
posted @ 2011-09-02 16:09 jacky_j2ee 阅读(145) 评论(0) 推荐(0)
摘要:开始第一篇随笔~看看效果如何namespace Sample{ class Sam { static void Main() { System.Console.WriteLine("我的文档!"); } }} 阅读全文
posted @ 2011-09-02 16:00 jacky_j2ee 阅读(134) 评论(0) 推荐(0)