有两种const函数,声明如下:1、const T func();2、T func() const;第一种表示返回的是const的类型,也即返回的值不能作为左值,楼主懂的。第二种表示该成员函数不能修改其成员变量的值,即该函数不能改变任何该类的非静态成员的值。