小型水上乐园加盟:求:c++基于类模板通用栈的实现心得体会,哪位大虾帮忙写一下,有重赏~-~

来源:百度文库 编辑:神马品牌网 时间:2024/05/03 02:49:41
实验题目:基于类模板通用栈的实现
实验内容:
#ifndef ISTACK_H
#define ISTACK_H
#include "iostream.h"
#define NULL 0
//声明一个istack类模板
template<class Type>
class istack;
//声明一个childistack类模板
template<class Type> class childistack;
//声明两个输出函数的操作函数并定义为他们的友元函数
template<class Type>ostream & operator<<(ostream & os,const childistack<Type>&Cistack);
template<class Type>ostream & operator<<(ostream--------------
-----------
----------