关于数据结构 顺序栈的问题!(语言-c++)

img


总会出现这个问题
error C2143: syntax error : missing ')' be

图不全
先好好看到底是哪个文件在报错,是不是你截图的文件

写成

struct SqStack
{
int data[MAXSIZE];
int top;
};

看看

另外,下面
Push函数,缺少返回 true 的逻辑