#include "stdafx.h" #include "stdlib.h" #include #include using namespace std; const int SZ=1000; template //声明类模板 class STACK { private: Type base[SZ]; int Size; public: STACK()//初始化栈 { Size=0; }; void push(Type a) //入栈 {