摘要: Dictionary d = new Dictionary(); int i=0; string s = "Welcome to china"; char[] c = new Char[s.Length]; fo... 阅读全文
posted @ 2015-10-27 11:19 尘梦 阅读(182) 评论(0) 推荐(0) 编辑
摘要: string str = null; Console.WriteLine("请输入一个字符串"); str = Console.ReadLine(); char[] c = new char[str.Length]; ... 阅读全文
posted @ 2015-10-27 10:48 尘梦 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 将一个数组中的奇数放到一个集合中,再将偶数放到另一个集合中。 最终将两个集合合并为一个集合,并且奇数显示在左边 偶数显示在右边。 List l = new List(); List l1=new List(); int[] num = {1,2... 阅读全文
posted @ 2015-10-27 10:19 尘梦 阅读(231) 评论(0) 推荐(0) 编辑