摘要: static void Main(string[] args) { string s = "Welcome to Chinaworld"; Dictionary dict=new Dictionary();//先弄一个字典,key用来放字母,值用来放出现次数 //遍历字符串,区分大小写,全部转换小写 foreach(char ch in s.ToLower()) { //如果字符串中的每个字符都没在字典的dict.containskey()... 阅读全文
posted @ 2013-10-29 01:11 南瓜asp 阅读(239) 评论(0) 推荐(0)