摘要: //一维数组【相同数据类型】 //第一种定义方式 // int[] shuzu = new int[5]; shuzu[0]=1; shuzu[1]=2; shuzu[2]=3; shuzu[3]=4; shuzu[4]=5; for(int i=1;i<5;i++) { shuzu[i]=i+1; 阅读全文
posted @ 2016-03-12 19:55 陌上初薰 阅读(201) 评论(0) 推荐(0) 编辑
摘要: string 类: string a = " asdfgHVj88"; int b = a.Length; //长度 属性不用加();方法要加() Console.WriteLine(b); string c = a.Trim(); //去掉前后空格 Console.WriteLine(c); st 阅读全文
posted @ 2016-03-12 16:45 陌上初薰 阅读(163) 评论(0) 推荐(0) 编辑