#includeusing namespace std;class Test {public: void fun1(); void fun1() const;};void Test::fun1(){ cout<<"normal member function"< fun1(); //访问常成员函数 return 0;}
本文共 266 字,大约阅读时间需要 1 分钟。
#includeusing namespace std;class Test {public: void fun1(); void fun1() const;};void Test::fun1(){ cout<<"normal member function"< fun1(); //访问常成员函数 return 0;}
转载于:https://www.cnblogs.com/rocklee25/p/7412615.html