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

您现在的位置是:虫虫源码 > 其他 > 一个动态的程序,它对不同类型的值进行排序

一个动态的程序,它对不同类型的值进行排序

资 源 简 介

Consider four sort methods - Stooge sort, Selection sort, Quick sort,Merge sort. Created a sort library that provides each of the above sort procedures for following datatypes - int, float, char, a struct containing 1 char, 1int, 1 float. The C file containing the main() function is generated as per the options given to make. In general, this file would include : The sort header file to include according to DTYPE. Declare a static array of type DTYPE & size ARRSIZE. Populate the array from the whose name is passed to it as command line argument. Call the appropriate sort procedure(s), time them, write sorted output to .out as necessary. Application specific variables to include in Makefile : 1. DTYPE := int (default) or float or char or struct- Denotes the data type of the input. 2. ARRSIZE - (default = 1) Denotes the size of the input array. Needs to be used in static array declaration. 3. SORTBY := int(def

文 件 列 表

2010cs10222
include
makefile
perf_test.eps
src
test
test.out
test.times

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP
  • WYG 1天前 成为了本站会员

  • Shine 1天前 成为了本站会员

  • 柳贻 1天前 成为了本站会员

  • hallelujah_HL 1天前 成为了本站会员

  • 焦昱贺 1天前 成为了本站会员

  • Rubin 1天前 成为了本站会员

  • Li 2天前 成为了本站会员

  • bigfatcat1977 3天前 成为了本站会员

  • just4down 3天前 成为了本站会员

  • shallow 3天前 成为了本站会员

0.180082s