• 2022-10-28
    关于结构体变量定义错误的选项是哪一项?
    A: struct player { int id; char name[32]; double x; double y;};struct player npc[100];
    B: struct player { int id; char name[32]; double x; double y;} npc[100];
    C: struct { int id; char name[32]; double x; double y;} npc[100];
    D: struct player { int id; char name[32]; double x; double y;};player npc[100];