摘要: 1 #include 2 #include 3 using namespace std; 4 5 typedef int QElemType; 6 typedef int Status; 7 #define MAXSIZE 10 8 #define OVERFLOW -2 9 #define OK 1 10 #define ERROR 0 11 12... 阅读全文
posted @ 2018-05-30 00:05 Piccolo_Devil 阅读(233) 评论(0) 推荐(0)
摘要: 1 #include 2 using namespace std; 3 4 typedef int Status; 5 typedef int ElemType; 6 #define OK 1 7 #define ERROR 0 8 9 10 //链栈的存储结构 11 typedef struct StackNode 12 { 13 ElemType data; ... 阅读全文
posted @ 2018-05-22 17:22 Piccolo_Devil 阅读(360) 评论(0) 推荐(0)
摘要: 1 #include 2 using namespace std; 3 4 typedef int SElemType; 5 typedef int Status; 6 #define OK 1 7 #define ERROR 0 8 9 10 #define MAXSIZE 100 //栈的最大空间 11 12 13 //顺序栈的存储结构 14 typ... 阅读全文
posted @ 2018-05-22 16:56 Piccolo_Devil 阅读(304) 评论(0) 推荐(0)
摘要: 1 #include 2 #include 3 #include 4 5 using namespace std; 6 7 typedef int ElemType; 8 typedef int Status; 9 #define OK 1 10 #define ERROR 0 11 12 13 //单链表的存储结构 14 typedef s... 阅读全文
posted @ 2018-05-21 20:05 Piccolo_Devil 阅读(731) 评论(0) 推荐(0)
摘要: 1 #include 2 3 using namespace std; 4 5 #define MAXSIZE 100 //最大长度 6 #define OK 1 7 #define ERROR -1 8 9 10 //类型重命名 11 typedef int Elemtype; 12 typedef int Status; 13... 阅读全文
posted @ 2018-05-14 16:00 Piccolo_Devil 阅读(541) 评论(0) 推荐(0)
摘要: 1 #include 2 #include 3 using namespace std; 4 5 //- - - 定义哈夫曼树的结点结构体 - - - 6 typedef struct 7 { 8 int weight; //权值 9 int parent; //父结点 10 int lchild; 11 ... 阅读全文
posted @ 2018-05-02 20:08 Piccolo_Devil 阅读(227) 评论(0) 推荐(0)
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1002 阅读全文
posted @ 2018-04-24 21:00 Piccolo_Devil 阅读(1171) 评论(0) 推荐(0)
摘要: 题目链接:http://hdu.hustoj.com/showproblem.php?pid=2037 今年暑假不AC Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Subm 阅读全文
posted @ 2017-11-26 22:01 Piccolo_Devil 阅读(139) 评论(0) 推荐(0)