- 博客(2)
- 收藏
- 关注
原创 虚基类继承时虚函数的重写问题?
#include<string>#include<ctime>class Person // an abstract base class{private: std::string firstname; std::string lastname;protected: virtual void Data(); virtual void Get();pu...
2019-08-28 22:49:13
1758
4
原创 C++ Primer Plus第六版_第八章_函数探幽_编程练习问题
编程练习6.要求包含一个具体化,将char指针数组和数组中的指针数量作为参数,并返回最长的字符串地址。如有多个这样的字符串,返回其中第一个字符串的地址。使用由5个字符串指针组成的数组来测试该具体化。#include <iostream>#include <cstring>using namespace std;template <typename T>...
2019-08-03 22:37:52
226
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人