摘要: //练习:把123转换为:壹贰叁。Dictionary "1一 2二 3三 4四 5五 6六 7七 8八 9九" string str = "1一 2二 3三 4四 5五 6六 7七 8八 9九"; //123 一二三 Dictionary dic = new Diction... 阅读全文
posted @ 2016-10-23 10:44 影落明湖 阅读(476) 评论(0) 推荐(0) 编辑
摘要: //案例:把分拣奇偶数的程序用泛型实现。int[] nums={1,2,3,4,5,6,7,8,9};奇数在左边 偶数在右边 int[] nums = { 1, 2, 3, 4, 5, 6, 7, 8, 9 }; List listJi = new List(); List listOu = new List(); ... 阅读全文
posted @ 2016-10-23 09:42 影落明湖 阅读(786) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _计算形状 { class Program { static void Main(string[] args)... 阅读全文
posted @ 2016-10-23 09:40 影落明湖 阅读(943) 评论(0) 推荐(0) 编辑