2013年9月5日

摘要: 随机生成100万个数,存储在文件out1.txt中,使用内部排序完成,并重新储存在文件out2.txt中。(一)使用STL中的qsort函数进行操作:[cpp]view plaincopy#include"stdio.h"#include"string.h"#include"stdlib.h"#include"time.h"inta[1000000];voidload(charfilename[])//写文件{inti;FILE*fp;fp=fopen(filename,"w");if(fp== 阅读全文
posted @ 2013-09-05 16:59 昔日的青春 阅读(359) 评论(0) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

点击右上角即可分享
微信分享提示