任何人都可以告诉我下面的程序中的错误.
#include <iostream>
using namespace std;
class A
{
public:
typedef int count;
static count cnt ;
};
count A::cnt = 0;
int main()
{
return 0;
}
Run Code Online (Sandbox Code Playgroud)
count没有命名类型