← 查看本卷题目GESP C++ 4级2024年9月单选题 第6题 · 2 分在 C++ 中,( )正确定义一个名为student的结构体,其中包含一个name字符数组和一个age整数? 填写答案Astruct student { char name[20]; int age; };Bstudent struct { char name[20]; int age; };Cstudent struct { string name; int age; };Dstruct student { char[20] name; int age; };提交答案详细解析这题不会 ← 上一题 第 249 / 378 题← → 键切题 下一题 →
在 C++ 中,( )正确定义一个名为student的结构体,其中包含一个name字符数组和一个age整数? 填写答案Astruct student { char name[20]; int age; };Bstudent struct { char name[20]; int age; };Cstudent struct { string name; int age; };Dstruct student { char[20] name; int age; };提交答案详细解析这题不会