问答详情
源自:4-2 定制自己的容器:结构体和共用体

为什么我这个有问题错误显示C1075

#include<iostream>

#include <stdio.h>

struct pupil

{

int maths;

int english;

};

int main()

{

struct pupil pup[50];

{

pup[20].maths = 95;

pup[20].english = 93;

std::cout << pup[20].maths << std::endl;

std::cout << pup[20].english << std::endl;

return 0;

}

不知道有什么问题反正就是显示,C1075{;未找到匹配令牌

提问者:乖大孙儿 2025-04-11 19:43

个回答