c++
class Screen{
public:
typedef string::size_type pos;
private:
pos cursor = 0;
pos height = 0, width = 0;
string contents;
public:
Srceen() = default; //这里显示 Error:缺少显式类型(假定"int") 为什么?
Screen(pos ht, pos wd) : height(ht), width(wd), contents(ht*wd, ' '){}
Screen(pos ht, pos wd, char c) : height(ht), width(wd), contents(ht*wd, c){}
};
我还只是在定义过程,为什么会出这类错误
版本:VS2013