摘要:
/****基类与子类的成员函数的关系*****/#include"stdafx.h"#include <iostream.h>class Base{public: void f() { cout << "Base::f" << endl;} void f(int i) { cout << "Base::f(int i)" << endl;... 阅读全文
摘要:
/*******************************Person.h*****************************/ #if !defined(AFX_PERSON_H__7862BC0E_A397_4133_AEEF_0F6FEF6B9F43__INCLUDED_)#define AFX_PERSON_H__7862BC0E_A397_4133_AEEF_0F6FEF6B... 阅读全文
摘要:
/*虚函数的简单应用*/ /*******************************Shape.h***********************************/#if !defined(AFX_SHAPE_H__0DFF4B12_4075_4594_84F1_CD0039366CE1__INCLUDED_)#define AFX_SHAPE_H__0DFF4B12_4075_45... 阅读全文