void get()const{return n;} 编译错误提示:error: return-statement with a value, in function returning 'void'改成这样: int get()const{return n;}
int get()const{return n;}
void get()const{return n;}改成int get()const{return n;}