template <class Type> Stack<Type>::Stack(int s):top(-1),maxsize(s)
{
elements=new Type[maxsize];
assert(elements!=0);
}
上面程序中“:”号的含义是什么?
template <class Type> Stack<Type>::Stack(int s):top(-1),maxsize(s)
{
elements=new Type[maxsize];
assert(elements!=0);
}
上面程序中“:”号的含义是什么?