摘要: 顺序表: 1 #include 2 using namespace std; 3 4 enum error{rangeerror,underflow,overflow,success}; 5 const int maxlen=1000; 6 7 class list{ 8 pub... 阅读全文
posted @ 2015-12-05 18:47 指间ゝ繁华初逝的格调 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 链栈: 1 #include 2 using namespace std; 3 struct node{ 4 int data; 5 node *next; 6 }; 7 enum error{underflow,overflow,success,fail}; 8 class sta... 阅读全文
posted @ 2015-12-05 18:26 指间ゝ繁华初逝的格调 阅读(238) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 using namespace std; 4 5 enum error{overflow,underflow,success}; 6 const int maxlen=100; 7 8 class queue{ 9 public:10 q... 阅读全文
posted @ 2015-12-05 17:25 指间ゝ繁华初逝的格调 阅读(199) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 using namespace std; 4 5 enum error{overflow,underflow,success}; 6 const int maxlen=100; 7 8 class stack 9 { 10 p... 阅读全文
posted @ 2015-12-05 17:07 指间ゝ繁华初逝的格调 阅读(153) 评论(0) 推荐(0) 编辑
摘要: (1) 指针本身是常量不可变(char*) const pContent;const (char*) pContent;(2) 指针所指向的内容是常量不可变const (char) *pContent;(char) const *pContent;(3) 两者都不可变const char* cons... 阅读全文
posted @ 2015-12-05 16:43 指间ゝ繁华初逝的格调 阅读(166) 评论(0) 推荐(0) 编辑