//思路:两个栈,一个专门入栈,一个专门出栈 #ifndef __Stackklx_H__ #define __Stackklx_H__ #include <iostream> using namespace std; template<class T> class Stackklx{ private: T *arr; int count; public: Stackklx();//构造函数 ~Stackklx();//析构函数 T front(); T pop(); T back...