============
class SeqStack
{
private:
int top;
int *elem;
int maxsize;
public:
SeqStack();
SeqStack(int size);
~SeqStack(){delete [] elem;}
void SeqStackPush(int e);
int Pop();
};
===========
SeqStack::SeqStackPush(int e)
{
//error C2556: 'int __thiscall SeqStack::SeqStackPush(int)' : overloaded function differs only by return type from 'void __thiscall SeqStack::SeqStackPush(int)'
//error C2371: 'SeqStackPush' : redefinition; different basic types
elem[++top]=e;
cout<<"elem[++top]=e已实现"<<endl;
}
婷婷同学_
蛊毒传说