struct year { int c,d; }; struct student { int a,b;struct year y1; }s;
这样结构体变量s里有几个成员啊?要算上y1里的c,d吗?
三个成员,两个int类型,一个struct year类型
第一次看到c结构体这种写法,C++好像不支持这种写法
struct student { int nId, int nIp; // 报错了 string strName; };