C++ 类中的const关键字
摘要:        
//类中的const关键字 #include using namespace std; class Point{ public: //这个const关键字本质上修饰的是this指针 int GetX() const //====>int GetX(const this) { //因为this被隐藏,所以const关键字只好写在函数后面 /...    阅读全文
        posted @ 2016-06-28 21:49 寒魔影 阅读(215) 评论(0) 推荐(0)
                    
                
浙公网安备 33010602011771号