摘要: 1 typedef int datatype; 2 3 inline void swap(datatype &a, datatype &b) 4 { 5 datatype tmp = a; 6 a = b; 7 b = tmp; 8 } 9 10 /*********************************** 11 冒泡排序: 12 每次将最小的数"冒"在最前面 13 ***********************************/ 14 void BubbleSort(datatype Array[], int le... 阅读全文
posted @ 2013-07-03 13:37 尘虑萦心 阅读(285) 评论(0) 推荐(0) 编辑