error C2228: left of '.year' must have class/struct/union type

日期:2021-08-30 15:00:55 人气:1

error C2228: left of '.year' must have class/struct/union type

struct Book{
char name;
int ID;
int price;
struct date;
}; Book b[20];
struct Date{
int year;
int month;
int day;
};
把这两个结构体的定义位置调整一下,试一试!
    A+
热门评论