C++ Primer Plus 书之--C++ 模板类

定义模板类 先看一个之前自定义的Stack类 // 别名 typedef unsigned long Item; class Stack { private: enum {MAX = 10}; Item items[MAX]; int top; public: Stack(); bool isempty() const; bool isfull() const; bool pu
相关文章
相关标签/搜索