為什么會出現報錯
#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;
}
#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
舉報
2021-06-22
結構體定義完后有個分號