随笔分类 - C#
摘要:using System.Diagnostics;namespace CH03{ class Program { static void Main(string[] args) { decimal decimalNumber = 4.2m; double doubleNumber1 = 0.1f * 42f; ...
阅读全文
摘要:namespace CH03{ class Program { static void Main(string[] args) { int n = '3' + '4'; char c = (char)n; System.Console.WriteLine(n); Syst...
阅读全文
摘要:namespace CH02{ class Program { static void Main(string[] args) { string[] languages; languages = new string[] { "1" }; int[] style1 = new int[1]; ...
阅读全文
摘要:namespace CH02{ class Program { static void Main(string[] args) { int[] forSort = new int[] { 1, 2, 3, 9, 8, 7, 6 }; Syst...
阅读全文
摘要:string idTag = "123-890";string theTag = idTag;2个变量将指向同一个对象。
阅读全文
摘要:System.Console.WriteLine(42.ToString());即使最基本的类型都是一个对象~
阅读全文
摘要:正确方式 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},...
阅读全文
摘要:开始第一篇随笔~看看效果如何namespace Sample{ class Sam { static void Main() { System.Console.WriteLine("我的文档!"); } }}
阅读全文

浙公网安备 33010602011771号