摘要:
Person.hpp代码如下: #ifndef PERSON_HPP #define PERSON_HPP #include<iostream> #include<ostream> #include<istream> #include<string> #include<iomanip> using 阅读全文
摘要:
task3.cpp代码如下: #include <iostream> #include "electricCar.hpp" int main() { using namespace std; // test class of Car Car oldcar("Audi", "a4", 2016); c 阅读全文
摘要:
vector_int.hpp代码如下: #ifndef VECTOR_INT_HPP #define VECTOR_INT_HPP #include<iostream> class vector_int { public: vector_int(int n,int m); vector_int(co 阅读全文
摘要:
info.hpp代码如下: #ifndef INFO_HPP #define INFO_HPP #include<iostream> #include<string> #include<iomanip> using std::string; class info { public: info(str 阅读全文
摘要:
钱思航 202083290428 阅读全文
摘要:
钱思航 202083290428 https://www.cnblogs.com/QIAN1219942427/ 阅读全文
摘要:
(1)实验任务三 不使用C++标准库,自行设计并实现一个复数类Complex,使其满足如下要求: i)数据成员 用来表示复数的实部real和虚部imag,实部、虚部,均为小数形式。 ii)函数成员 构造函数(支持以下方式定义复数对象) Complex c1; // 不带参数 Complex c2(3 阅读全文