#3290. [GESP202603 四级 C++] 第 22 题

[GESP202603 四级 C++] 第 22 题

下面代码没有语法错误。

struct GameCharacter {
    string name;
    int level;
    float position_x;
    float position_y;

    struct Equipment {
        string weapon;
        int attack_bonus;
        int defense_bonus;
    } equipment;

    struct Skill {
        string name;
        int damage;
    } skills[8];
    int skill_count;
};

{{ select(1) }}

  • 正确
  • 错误