题库首页 › GESP等级认证(C++) › 题目 15896

下面c++代码在一个结构体中又定义了别的结构体。这种结构嵌套定义的方式语法不正确。 #include #include using namespace std; struct Library { struct Book { struct Author { string name; int birthYear; }; string title; int year; Author author; }; string name; vector books; } ;

A:对
B:错

正确答案:错误

试卷来源:202506 CCF-GESP编程能力等级认证C++四级真题

本卷相关题目

在线做题 同科目题库