void stackType<Type>::push(const Type& newItem)
{
if(!isFullStack()) // You havent defined this member function.
{
list[stackTop] = newItem;
stackTop++;
}
else
cerr<<"Cannot add to a full stack."<<endl;
}
ALso
is not returning a string value.
Reputation Points: 572
Solved Threads: 115
Mentally Challenged Mod.
Offline 1,559 posts
since Jun 2005