摘要: /**//*这个算法的实现没有按照书上的做法,书的算法变量太多,且命名混乱,不容易分析和理解,所以我采用了严蔚敏版的算法.另外,书中在排序开始时是讲,所有的排序都是从小到大的排序,但现在的做法是将小的结点放在了数组的后面,又没有说明.*/#include "stdafx.h"#include #include int const count=8;typedef struct { int ke... 阅读全文
posted @ 2007-08-08 14:06 吴东雷 阅读(317) 评论(0) 推荐(0) 编辑
摘要: #include "stdafx.h"#include #include int const count=8;typedef struct { int key;}records;typedef records list[count+1];void select(list & r){ for(int i=1;i>r[i+1].key; } */ r[1].key=70;... 阅读全文
posted @ 2007-08-08 09:40 吴东雷 阅读(261) 评论(0) 推荐(0) 编辑