C++学习 explicit关键字 explicit关键字用来禁止隐式类型转换。 const关键字 常量成员函数 如果一个成员函数不改变成员变量的值,最后声明为const.如: inline int get()const{ return x_; }