编译过程中出现了';' missing after class/struct/enum declaration是什么错误

img

img

img


如果你要声明一个struct的话,去掉结构体定义后面的struct,或者在结构体定义后打一个分号
类似

struct s{
int a;
int b;}book={1,2};

或者

struct s{
int a;
int b;};
struct s book={1,2};