给这样的栈存储结构的一些操作,能够在main中实现的
#define MAXSIZE 100
#define int Status
typedef int SElemType;
typedef struct
{
SElemType data[MAXSIZE];
int top;
}Sqstack;
Status InitSqstack(Sqstack *S) { }
Status PushSqstack(Sqstack *S,SElemType e) {}
Status PushSqstack(Sqstack *S,SElemType *e) {}
Status PrintSqstack(Sqstack *S) {}
void main()
{
}
谢了,我的指针老是错误,能不能帮我写给模版,如果不用指针用&,gcc 好像回报错,
终点是在main中的实现部分和初始化部分