数据结构实验:栈与队列实现.pdf

实验五

//////////////////////////////////////////////////////////

_

stack..h#ifndefSTACKH#define

_

STACKH//栈类模板定义temte

classTclassstack{public:T*Vec;int

MaxSize;inttop;public:stack(int

size);//构造函数~stack();//析构函数

voidPush(Tx);//把元素x压入栈中T

Po

文档评论(0)

1亿VIP精品文档

相关文档