C++ 友元类,友元函数
摘要:        
//友元函数 友元类 #include using namespace std; class PointB { public: friend class PointC; //类PointC是类PointB的友元类--意味着类PointC对象可以调用PointB中所有的成员 void Test(){ ; } private: int ...    阅读全文
        posted @ 2016-06-24 09:59 寒魔影 阅读(209) 评论(0) 推荐(0)
                    
                
浙公网安备 33010602011771号