摘要: 一、非常量对象可以访问类的普通成员函数和常量成员函数#include using namespace std;class Stack{private: int m_num; int m_data[20];public: Stack() { m_num = 0; } void Push(int nElem) { } int Pop() { GetCount(); return 0; } int GetCount()const //常量成员函数 { ... 阅读全文
posted @ 2014-01-07 23:19 VC初学者 阅读(834) 评论(0) 推荐(0) 编辑