关于private成员、protected成员、public成员调用问题
头文件Person:
#include using namespace std;
class Person
{
public:
Person();
~Person();
void eat();
protected:
string m_strName;
private:
int m_iAge;
};
源文件Person:
#include
#include "Pe
原创
2015-12-05 11:02:10 ·
535 阅读 ·
0 评论