64,661
社区成员
发帖
与我相关
我的任务
分享
class A
{
public:
static const int a;
static const int b;
static int c;
A();
~A();
};
int A::a=10;
const int A::b= 6;
A::A()
{
c = a+b;
}
main()
{
while(1)
{
testfun();
}
}
void testfun()
{
for(int i=0; i<10; i++)
{
A myClass;
}
}