class类如何定义static类类型啊?
class foo{
int x;
int y;
};
class check {
static foo other;
static z;
};
c++ primer 4rd十二章的某个习题的简化版,
大概就是这个意思!
哪个 other已经声明了,如何在类外定义啊?
[解决办法]
foo check::other;
发布时间: 2013-09-23 11:21:05 作者: rapoo
class类如何定义static类类型啊?
class foo{
int x;
int y;
};
class check {
static foo other;
static z;
};