悟生慧

 

2010年8月4日

C#组合算法

摘要: static string[] m_Data = { "A", "B", "C", "D", "E" }; static void Main(string[] args) { Dictionary<string, int> dic = new Dictionary<string, int>(); for (int i = 0; i < m_Data.Length; i... 阅读全文

posted @ 2010-08-04 17:10 悟生慧 阅读(292) 评论(0) 推荐(0)

随机产生1-100之间的20个随机数

摘要: private void Random(int[] arrayK){ int i = 0; int a,j; Random random = new Random(); while (i < 20) { arrayK[i]=random(100)+1; i++; }} 阅读全文

posted @ 2010-08-04 09:16 悟生慧 阅读(2723) 评论(0) 推荐(0)

导航