2018年7月28日

多态二

摘要: 1、普通函数的继承 class Base { public: virtual void Test1() { cout << "B::Test1()" << endl; } virtual void Test2() { cout << "B::Test2()" << endl; } int _b; } 阅读全文

posted @ 2018-07-28 22:10 众里寻他2018 阅读(53) 评论(0) 推荐(0)

C++实现date类

摘要: # include<iostream> # include<stdio.h> # include<stdlib.h> # include<string.h> using namespace std; class Date { public: //构造函数 Date(int year = 1900, 阅读全文

posted @ 2018-07-28 02:17 众里寻他2018 阅读(71) 评论(0) 推荐(0)

导航