摘要:
//堆栈,链表实现#includeusing namespace std;class stack{public: int data; stack*next; };stack*Linkstack(){ stack*s = new stack; s->next = NULL; //生成... 阅读全文
posted @ 2015-04-08 23:11
曹孟德
阅读(230)
评论(0)
推荐(0)
摘要:
//堆栈,数组实现#includeusing namespace std;#define Maxsize 100class stack{public: int data[Maxsize]; int top = -1; //保存栈顶下标值};int pop(stack*ptrl);... 阅读全文
posted @ 2015-04-08 22:35
曹孟德
阅读(365)
评论(0)
推荐(0)

浙公网安备 33010602011771号