摘要: 程序运行截图如下:程序代码如下: 1 #include 2 #include 3 #include 4 #define MAXSIZE 20 5 typedef int KeyType; 6 typedef char InfoType; 7 8 //结构体定义 9 typedef struc... 阅读全文
posted @ 2015-03-24 21:27 橙子123 阅读(276) 评论(0) 推荐(0) 编辑
摘要: 程序运行结果见如下截图:程序代码如下: 1 #include 2 #include 3 #include 4 #define MAXSIZE 20 5 typedef int KeyType; 6 typedef char InfoType; 7 8 //结构体定义 9 typedef st... 阅读全文
posted @ 2015-03-24 21:25 橙子123 阅读(234) 评论(0) 推荐(0) 编辑
摘要: 见如下截图:程序代码如下: 1 #include 2 #include 3 #include 4 #define MAXSIZE 20 5 typedef int KeyType; 6 typedef char InfoType; 7 8 //结构体定义 9 typedef struct {... 阅读全文
posted @ 2015-03-24 20:24 橙子123 阅读(325) 评论(0) 推荐(0) 编辑
摘要: 例如:待排序数组为:7 2 4 1 3 2 第一次排序:2 7 4 1 3 2 第二次排序:2 4 7 1 3 2 第三次排序:1 2 4 7 3 2 第四次排序:1 2 3 4 7 2 第五次排序:1 2 2 3 4 7程序实现代码如下: 1 #include 2 #in... 阅读全文
posted @ 2015-03-23 21:16 橙子123 阅读(431) 评论(0) 推荐(0) 编辑
摘要: 程序代码如下:#include #include #define OVERFLOW -2#define OK 1#define ERROR 0typedef int QElemType;typedef struct QNode { QElemType data; struct QNode... 阅读全文
posted @ 2015-03-21 21:32 橙子123 阅读(308) 评论(0) 推荐(0) 编辑
摘要: 程序代码如下: 1 #include 2 #include 3 4 #define STACK_INIT_SIZE 100 5 #define STACKINCREMENT 10 6 #define OVERFLOW -2 7 #define OK 1 8 #define ER... 阅读全文
posted @ 2015-03-18 22:25 橙子123 阅读(208) 评论(0) 推荐(0) 编辑
摘要: #include #include #define OVERFLOW -2#define OK 1#define ERROR 0//此双向循环链表无头结点typedef int ElemType;typedef struct DulNode { ElemType data; struct DulNo... 阅读全文
posted @ 2015-03-15 21:30 橙子123 阅读(790) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 #define OVERFLOW -2 4 #define OK 1 5 #define ERROR 0 6 typedef int ElemType; 7 8 typedef struct LNode { 9 Ele... 阅读全文
posted @ 2015-03-11 20:57 橙子123 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 4 #define LIST_INIT_SIZE 100 5 #define LISTINCREMENT 10 6 #define OVERFLOW -2 7 #define OK 1 8 #define ERROR 0 9 ... 阅读全文
posted @ 2015-03-11 17:20 橙子123 阅读(393) 评论(0) 推荐(0) 编辑
摘要: ************************************************题目描述***************************************************UVA - 401PalindromesTime Limit: 3000MSMemory Li... 阅读全文
posted @ 2015-03-08 19:19 橙子123 阅读(196) 评论(0) 推荐(0) 编辑