AI题库 · GESP-C++四级题库
题目分享 #20706
下面的描述中,( )不能正确定义一个名为 Student 的结构体以及一个包含20个元素的结构数组。
A
struct Student {
string name;
int age;
float score;
};
struct Student students[20];
B
struct Student {
string name;
int age;
float score;
};
Student students[20];
C
struct Student {
string name;
int age;
float score;
};
Student* students = new Student[20];
D
struct Student {
string name;
int age;
float score;
};
Student students = new Student[20];
AI题库 · 编程考级与信奥赛真题库
查看答案 →
复制链接后可在微信、QQ、小红书等平台粘贴分享;答案与解析在题目页。