下面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++四级真题