#include<iostream> #include<string> //数组实现的栈,能存储任意类型的数据 using namespace std; //模板类 template<class T> class <