摘要:
#include #include #include #define TRUE 1#define FALSE 0#define OK 1#define ERROR 0#define INFEASIBLE -1#define OVERFLOW -2typedef int status;typedef ... 阅读全文
posted @ 2015-12-10 23:49
柳下_MBX
阅读(343)
评论(0)
推荐(0)
摘要:
//stack.h#include#include#define TRUE 1#define FALSE 0#define OK 1#define ERROR 0#define OVERFLOW -1#define UNDERFLOW ... 阅读全文
posted @ 2015-12-10 20:57
柳下_MBX
阅读(284)
评论(0)
推荐(0)
摘要:
/* 课本p54页*/#include#include using namespace std;void move(int n, char a, char b){ printf("Move %c to %c.\n",a,b);}void hanoi(int n, char a, char b... 阅读全文
posted @ 2015-12-10 19:11
柳下_MBX
阅读(137)
评论(0)
推荐(0)
摘要:
#include #include #include #define TRUE 1#define FALSE 0#define OK 1#define ERROR 0#define INFEASIBLE -1#define OVERFLOW -2#define LIST_INIT_SIZE 100#... 阅读全文
posted @ 2015-12-10 17:28
柳下_MBX
阅读(194)
评论(0)
推荐(0)
摘要:
//************ 课本53页,用栈来实现的简单的四则运算表达式. '#'是表达式结束符, 注意在表达式输入完毕后需再输入一个'#'表示结束. eg:4+2*3-10/5# **********//#include#include #include #inc... 阅读全文
posted @ 2015-12-10 17:10
柳下_MBX
阅读(1794)
评论(0)
推荐(0)
摘要:
这个应该是以一个数组实现两个栈的共享。 ----------------------------------------------- | | | | | | | | | | | 长度为10的数组 ... 阅读全文
posted @ 2015-12-10 16:02
柳下_MBX
阅读(315)
评论(0)
推荐(0)
摘要:
#include #include #include #define TRUE 1#define FALSE 0#define OK 1#define ERROR 0#define INFEASIBLE -1#define OVERFLOW -2#define LIST_INIT_SIZE 100#... 阅读全文
posted @ 2015-12-10 15:40
柳下_MBX
阅读(263)
评论(0)
推荐(0)
摘要:
//双链循环线性表的表示与实现#include #include #include #define TRUE 1#define FALSE 0#define OK 1#define ERROR 0#define INFEASIBLE -1#define OVERFLOW -2typedef int ... 阅读全文
posted @ 2015-12-10 15:39
柳下_MBX
阅读(363)
评论(0)
推荐(0)
摘要:
/*Sample Inputsin(20+10){[}]Sample Outputyesno*/#include #include #include #define TRUE 1#define FALSE 0#define OK 1#define ERROR 0#define INFEASIBLE ... 阅读全文
posted @ 2015-12-10 15:39
柳下_MBX
阅读(826)
评论(0)
推荐(0)

浙公网安备 33010602011771号