- 博客(3)
- 收藏
- 关注
原创 C++虚函数指针的巧用
#ifndef A_H#define A_H#include <iostream>using namespace std;class A{public: A(); ~A(); virtual int getNum(); virtual int getCount();};#endif#include "a.h"A::A()...
2018-08-15 21:35:24 194 1
原创 C++中用函数去定义数组
#include <iostream>using namespace std;int fun1(){ cout<<"fun1"<<endl; return 2;}int fun2(){ cout<<"fun2"<<endl; return 0;}int main(){
2018-08-15 21:20:52 2715
翻译 判断某一年是否是闰年
void getLeapYear(){ //判断某一年是否是闰年 cout int year; cin >> year; tm it; it.tm_year = year - 1900; it.tm_mon = 2;//一月在计算机中是0. it.tm_mday = 1; it.tm_hour = 0;
2017-07-17 23:05:21 247
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人