摘要:
实验结论 类的继承和派生练习 源码 battery.h battery.cpp car.h cpp // // Created by KOKODA on 2019/5/18. // ifndef SHIYAN4_CAR_H define SHIYAN4_CAR_H include using nam 阅读全文
摘要:
编程题一 main.cpp info.cpp cpp include "info.h" include using std::cout; using std::cin; using std::endl; Info::Info(string nickname0, string contact0, st 阅读全文
摘要:
Complex类 源码 cpp include include include include using namespace std; class Complex { private: double real, imaginary; public: Complex(double r = 0.0, 阅读全文
摘要:
在完成了第三章的学习后,为了便于日后的复习整理,我制作了一张思维导图,有需要的可以自取。 函数的定义与使用 带默认值的函数 在C++中我们可以为函数添加默认的参数值,在调用时可不传入或部分传入参数,为传入的部分便会采用默认值。 带默认参数的函数可以放在main函数前。 c++ include usi 阅读全文