‹ 上一题 下一题 ›

g4-03954. GESP-4级-2024-12-单选-第06题 未做

下面的描述中,( )不能正确定义一个名为 Student 的结构体以及一个包含 个元素的结构数组。

  • A. ```cpp
    struct Student {
    string name;
    int age;
    float score;
    };
    struct Student students[20];
- **B.** ```cpp
struct Student {
    string name;
    int age;
    float score;
};
Student  students[20];
  • C. ```cpp
    struct Student {
    string name;
    int age;
    float score;
    };
    Student* students = new Student[20];
- **D.** ```cpp
struct Student {
    string name;
    int age;
    float score;
};
Student  students = new Student[20];
未选择
输入
输出

            
答案