為什么會(huì)出現(xiàn)報(bào)錯(cuò)
#include <stdio.h>
struct xuesheng
? ? {
? ? int math;
? ? int english;
? ? }
int main(int argc,char **argv)
{
? ? struct xuesheng chengji[50];
? ? chengji[15].math = 120;
? ? chengji[15].english = 115;
? ??
? ? return 0;
}
2021-06-22
結(jié)構(gòu)體定義完后有個(gè)分號(hào)