摘要: /* string s = Console.ReadLine();// int i = s.Length; .Length是 获取字符串长度,并返回一个int值!// s=s.Trim(); 去除字符串 前 后 的空格! //s = s.TrimStart();去除字符串 前面 的空格! // s ... 阅读全文
posted @ 2014-10-17 15:47 安定祥和 阅读(144) 评论(0) 推荐(0) 编辑
摘要: /* while int n = 1; //此处如果是for循环, for(int n=1;n<6;n++) while (n < 6) { Console.WriteLine ("结果是{0}",n); //留空的表示方法!//Console.Write("我是:{0},你是:{1},我们:{... 阅读全文
posted @ 2014-10-17 14:21 安定祥和 阅读(599) 评论(0) 推荐(0) 编辑