class Time
{
public:
Time(){count=999;}
static int howmany(){count++;return count;}
private:
static int count;
};
int _tmain(int argc, _TCHAR* argv[])
{
Time x;
cout<<x.howmany()<<endl;
//cout<<Time::howmany()<<endl;
system("pause");
return 0;
}
请问一下各位 这里我将count设成静态为什么会出现错误?
还有这行 cout<<Time::howmany()<<endl;
::这里是什么意思? 这行编译有过不了