摘要:
随机生成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
昔日的青春
阅读(361)
评论(0)
推荐(0)

浙公网安备 33010602011771号