A heterogeneous stack template.

xiaoxiao2021-03-06  15

#ifndef stack_h # define stack_h # include

Using namespace std;

Template > class contact = std :: deg> class stack {private: cont elems; public: void push (t const); void Pop (); T TOP () const {return ELEMS.EMPTY (); Template > Class Cont2> Stack & operator = (Stack Const &);}; Template Class Cont> Void Stack :: Push (t const & elem) {elems.push_back (ELEM);

转载请注明原文地址:https://www.9cbs.com/read-46284.html

New Post(0)