导航

上一页 1 ··· 8 9 10 11 12

2015年9月15日

摘要: 有兴趣的同学可以扩展函数内容,实现更多的运算,而不仅仅是整型数据的四则运算 阅读全文

posted @ 2015-09-15 22:28 CSU蛋李 阅读(2631) 评论(6) 推荐(0) 编辑

2015年9月14日

摘要: 迷宫问题的实现,小伙伴们可以参考,用来形成更漂亮的代码 阅读全文

posted @ 2015-09-14 23:23 CSU蛋李 阅读(2365) 评论(0) 推荐(1) 编辑

2015年9月13日

摘要: 这是最后一次关于线性表的更新了,接着会更新数据结构的第3章:栈和队列 阅读全文

posted @ 2015-09-13 18:56 CSU蛋李 阅读(1974) 评论(1) 推荐(1) 编辑

2015年9月11日

摘要: 链表在空间的合理利用上和插入、删除时不需要移动等优点,因此在很多场合下,它是线性表的首先储存结构。然而它也存在着实现某些基本操作,如求线性表的长度时不如顺序储存结构的特点。因而从新定义线性链表及其基本操作头文件:#define TRUE 1#define FALSE 0#define OK 1#d... 阅读全文

posted @ 2015-09-11 21:40 CSU蛋李 阅读(2378) 评论(6) 推荐(0) 编辑

2015年9月9日

摘要: #define TRUE 1#define FALSE 0#define OK 1#define ERROR 0#define INFEASIBLE -1#define MYOVERFLOW -2#define MAXSIZE 1000//链表的最大长度typedef int Status;type... 阅读全文

posted @ 2015-09-09 20:13 CSU蛋李 阅读(169) 评论(0) 推荐(0) 编辑

摘要: #define TRUE 1#define FALSE 0#define OK 1#define ERROR 0#define INFEASIBLE -1#define MYOVERFLOW -2typedef int Status;typedef int Elemtype;//用指定标识符Elem... 阅读全文

posted @ 2015-09-09 20:12 CSU蛋李 阅读(231) 评论(0) 推荐(0) 编辑

摘要: int compare(SqList l, Elemtype e)//用来比较的函数,现在选用=={ int position=0;//表中没有元素e时,返回position=0 for (int i = 0; i =i || i > L.length){ //如果i大于length,... 阅读全文

posted @ 2015-09-09 20:10 CSU蛋李 阅读(244) 评论(0) 推荐(0) 编辑

摘要: #define LIST_INIT_SIZE 100#define LISTINCREMENT 10#define TRUE 1#define FALSE 0#define OK 1#define ERROR 0#define INFEASIBLE -1#define MYOVERFLOW -2ty... 阅读全文

posted @ 2015-09-09 20:08 CSU蛋李 阅读(590) 评论(0) 推荐(0) 编辑

上一页 1 ··· 8 9 10 11 12