有如下类定义:
class Foo
{public:
Foo(int v):value(v){} //1
~Foo() {} //2
private:
Foo {} //3
int value=0; //4
};
其中存在语法错误的行是。
1
2
3
4
发表评论