在类中,非常量成员函数中,this指针为指向非常量的常量指针Class* this const
在常量成员函数中,this指针为const class* this const,为指向常量的常量指针
在类中,非常量成员函数中,this指针为指向非常量的常量指针Class* this const
在常量成员函数中,this指针为const class* this const,为指向常量的常量指针
转载于:https://www.cnblogs.com/starfire86/p/5553053.html