直接使用\t,和\n类似。 字符串中文件路径的写法
3.当字符串中需要大量修改时,用StringBuilder更好,运行时间更短。
4.Console.ReadLine()读进来的默认是字符串string。
5.C#严格区分大小写,Main需要大写,前面有static修饰。
6.数组属引用类型。 int[] a; double []b; Mydate []c; 注意方括号写到变量名的前面。 int a[5] //C#语言中声明数组时不能指定其长度(数组中元素的个数)非法
7.int[] ages=new int[10]; foreach(int age in ages) { //… }
8.var隐式类型
用Checked语句块来检查是否溢出 Checked { int a=int.MaxValue; a+=1; }