课程设计--图书管理系统 1.版权所有 (C)2015, 刘小硕 2.* 文件名称:library.h 1.* 文件标识:无 2.* 内容摘要:图书信息管理系统 3.* 其它说明:无 4.* 当前版本: V1.0 5.* 作 者:刘小硕 6.* 完成日期: 2015.12.24 7.* 8.* 修改记录1: 9.* 修改日期: 2015.12.22 10.* 版本号: V1.0
学期总结 这学期很荣幸也很高兴能够遇到贺老师,第一次体验反转课堂,很欣喜还有点小激动,第一次打破了传统的授课方式,我们自己通过看教学视频来学习课本内容,在课堂上贺老师将我们所看视频的反映情况来细讲重点难点,并补充课本上以外的知识,而且分小组探讨学习我感觉这样的方式很好,但也需要我们的自主能动性,平常要多花课余时间来看视频学习,在上机课时还有发博文来对学习内容的巩固研究。所以反转课堂非常锻炼我们的自主学习能力
验证算法(8)基数排序 #include #include #include #define MAXE 20 //线性表中最多元素个数 #define MAXR 10 //基数的最大取值 #define MAXD 8 //关键字位数的最大取值 typedef struct node { char data[MAXD]; //记录的关键字
验证算法(7)归并排序 #include #include #define MaxSize 20 typedef int KeyType; //定义关键字类型 typedef char InfoType[10]; typedef struct //记录类型 { KeyType key; //关键字项 InfoType data; //其他
验证算法(6)堆排序 #include #define MaxSize 20 typedef int KeyType; //定义关键字类型 typedef char InfoType[10]; typedef struct //记录类型 { KeyType key; //关键字项 InfoType data; //其他数据项,类型为Info
验证算法(5)直接选择排序 #include #define MaxSize 20 typedef int KeyType; //定义关键字类型 typedef char InfoType[10]; typedef struct //记录类型 { KeyType key; //关键字项 InfoType data; //其他数据项,类型为Info
验证算法(4)快速排序 #include #define MaxSize 20 typedef int KeyType; //定义关键字类型 typedef char InfoType[10]; typedef struct //记录类型 { KeyType key; //关键字项 InfoType data; //其他数据项,类型为Info
验证算法(3)冒泡排序 #include #define MaxSize 20 typedef int KeyType; //定义关键字类型 typedef char InfoType[10]; typedef struct //记录类型 { KeyType key; //关键字项 InfoType data; //其他数据项,类型为Info
验证算法(2)希尔排序 #include #define MaxSize 20 typedef int KeyType; //定义关键字类型 typedef char InfoType[10]; typedef struct //记录类型 { KeyType key; //关键字项 InfoType data; //其他数据项,类型为Info
直接插入排序 #include #define MaxSize 20 typedef int KeyType; //定义关键字类型 typedef char InfoType[10]; typedef struct //记录类型 { KeyType key; //关键字项 InfoType data; //其他数据项,类型为Info
CodeBlocks使用与单步调试 /* **CodeBlocks使用与单步调试 **刘小硕 **get新技能 */ #include using namespace std; void printstars(int m) { for(int j=1;j<=m;++j) cout<<'*'; } int
二叉排序树 #include #include typedef int KeyType; typedef char InfoType[10]; typedef struct node //记录类型 { KeyType key; //关键字项 InfoType data; /
插入排序之希尔排序 #include #define MaxSize 20 typedef int KeyType; //定义关键字类型 typedef char InfoType[10]; typedef struct //记录类型 { KeyType key; //关键字项 InfoType data; //其他数据项,类型为Info
插入排序之直接插入排序 #include #define MaxSize 20 typedef int KeyType; //定义关键字类型 typedef char InfoType[10]; typedef struct //记录类型 { KeyType key; //关键字项 InfoType data; //其他数据项,类型为Info
哈希表及其运算的实现 #include #define MaxSize 100 //定义最大哈希表长度 #define NULLKEY -1 //定义空关键字值 #define DELKEY -2 //定义被删关键字值 typedef int KeyType; //关键字类型 typedef char * InfoType; //其他
用哈希法组织关键字 线性探测法 #include #include #define N 15 #define M 26 int H(char *s) { return ((*s-'a'+1)%M); } int main() { char *s[N]= {"if", "while", "for", "case", "do", "break", "else", "struc
B-树的基本操作 #include #include #define MAXM 10 //定义B-树的最大的阶数 typedef int KeyType; //KeyType为关键字类型 typedef struct node //B-树结点类型定义 { int keynum;
验证二叉排序树相关算法 #include #include typedef int KeyType; typedef char InfoType[10]; typedef struct node //记录类型 { KeyType key; //关键字项 InfoType data; /