随笔分类 -  求职面试

摘要:两道简单的机试题目 1.统计一个英语句子中最大单词的长度 2.统计一个字符串内大写字母,空格以及数字的个数 class Program { static void Main(string[] args) { CountLength(); CountNum(); Console.Read(); } //统计一个英语句子中最大单词的长度 private static void CountLength() { string test = "I am a good man"; string[] arr = test.Split(' '); int max = 0; 阅读全文
posted @ 2013-10-17 16:55 翱翔之鹰 阅读(330) 评论(0) 推荐(0)