//首先已知一组数,然后查找里面是否还有你想要的数字,如果这组数全部加载到内存中,消耗的内存在你的承受范围内,那么就可以先对这组数进行排序,然后在查找。如果这组数很大,那么你就必须把这组数分开到不同的文件中,然后逐个文件进行处理 1 class Program 2 { 3 static void Main(string[] args) 4 { 5 int[] iarray = new int[] { 2, 6, 4, 98, 5, 16, 9, 8, 7, 44 }; 6 sort(iarray); 7 ... Read More
posted @ 2012-09-14 22:19 饮酒笑红尘 Views(182) Comments(0) Diggs(0) Edit