正在加载图片...
5.3 Formula-based Representation T TopOconst Stack <T>& add(const T& x) Stack<T>& delete& x) Private int top; /current top of a stack int MaxTop; //max value for top T* stack; /element array5.3 Formula-based Representation T Top()const; Stack<T>& Add(const T& x); Stack<T>& Delete(T& x); Private: int top; //current top of a stack int MaxTop; //max value for top T* stack; //element array };
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有