struct GenListNode {
};
struct Items {
int utype;
union {
int ref;
T value;
GenListNode* link;
}info;
Items() :utype(0), info.ref(0) {};//编译提示这里语法错误
};
int main() {
Items i;
return 0;
}
为什么会出错?
能不能写的整齐点。
代码不完整
GenListNode<T>* link;
这里就编译不了。
代码不完整,而且贴代码贴的也很乱…