摘要: c++,vc6.0,中友元函数,无法访问私有字段(private)的问题(problem),cannot access private member declared in class 'Date'代码如下:#ifndef _DATE_H_ #define _DATE_H_ #include using namespace std; class Date { public: Date(); Date(int y,int m,int d); void printOn(); private: int _year; int _mounth; int _day; friend cons 阅读全文
posted @ 2013-08-02 16:13 shouqiang Wei 阅读(449) 评论(0) 推荐(0) 编辑