首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > C/C++/VC++ > C++程序使用一个外部或主内存排序文件排序

C++程序使用一个外部或主内存排序文件排序

  • 资源大小:927.45 kB
  • 上传时间:2021-06-29
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分:1积分
  • 标      签: merge template CPlusPlus sort External

资 源 简 介

The mergesort class is a template and can be declared mergesort ms("inputFileName", "outputFileName"); for internal sorting or mergesort ms("inputFileName", "outputFileName", maxDequeSize); for external sorting, where maxDequeSize is an integer that states the largest amount of entries a deque will have in memory at one time. The driver sorts a 100,000 list of doubles externally, and a list 50 string in main memory. No external storage library is used. All external storage is done using text files and fstream. The input files used by the driver are "data.txt" and "data2.txt". The output files are "test1results.txt" and "test2results.txt". This program was created using Microsoft Visual Studio 2012.

文 件 列 表

MergeSort.exe
data.txt
data2.txt
VIP VIP
0.172170s