C++中的error C2662,const的this指针问题

今天在写C++代码的时候遇到一个错误,涉及到了常量的this指针的问题。html 简化后的代码以下:ios #include <iostream> #include <string> using namespace std; class A { private: string str; string getStr(); public: void print() const
相关文章
相关标签/搜索