摘要:
网上参考了一些排序方法,结合自己的想法,写了个粗版。有不对的地方请大家批评。 List<int> list = new List<int> { 45, 2, 19, 11, 85, 80, 43, 99, 152, 0 }; int maxIndex = 0; int minIndex = 0; int max = 0; int min = 0; for (int i = 0 ; i < list.Count / 2 ; i++)//亮点:只做1/2的循环 { maxIndex = list.Count - i - 1; minIndex = i; max = l 阅读全文
posted @ 2012-05-08 10:49
中文代码
阅读(828)
评论(1)
推荐(0)
浙公网安备 33010602011771号