2011年4月11日

最近面试遇到的关于字符串的输出查找题目

摘要: /// <summary> /// 输出第一个只出现一次的字母 /// </summary> private static void OutPutTheFirstLetter() { string a = Console.ReadLine(); byte[] array = System.Text.Encoding.ASCII.GetBytes(a); int b = -1; for (int i = 0; i < array.Length; i++) { for (int j = i + 1; j < array.Length; j++) { if (ar 阅读全文

posted @ 2011-04-11 12:52 幽幽南山下 阅读(292) 评论(0) 推荐(0) 编辑

导航