随笔分类 - 求职面试
摘要:两道简单的机试题目 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;
阅读全文
浙公网安备 33010602011771号