摘要: Person.hpp代码如下: #ifndef PERSON_HPP #define PERSON_HPP #include<iostream> #include<ostream> #include<istream> #include<string> #include<iomanip> using 阅读全文
posted @ 2021-12-12 16:18 voidsora 阅读(29) 评论(2) 推荐(0) 编辑
摘要: task3.cpp代码如下: #include <iostream> #include "electricCar.hpp" int main() { using namespace std; // test class of Car Car oldcar("Audi", "a4", 2016); c 阅读全文
posted @ 2021-11-28 14:34 voidsora 阅读(28) 评论(2) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2021-11-06 16:24 voidsora 阅读(9) 评论(3) 推荐(0) 编辑
摘要: info.hpp代码如下: #ifndef INFO_HPP #define INFO_HPP #include<iostream> #include<string> #include<iomanip> using std::string; class info { public: info(str 阅读全文
posted @ 2021-10-31 14:51 voidsora 阅读(14) 评论(3) 推荐(0) 编辑
摘要: 钱思航 202083290428 阅读全文
posted @ 2021-10-27 16:12 voidsora 阅读(22) 评论(0) 推荐(0) 编辑
摘要: 钱思航 202083290428 https://www.cnblogs.com/QIAN1219942427/ 阅读全文
posted @ 2021-10-27 16:11 voidsora 阅读(65) 评论(0) 推荐(0) 编辑
摘要: (1)实验任务三 不使用C++标准库,自行设计并实现一个复数类Complex,使其满足如下要求: i)数据成员 用来表示复数的实部real和虚部imag,实部、虚部,均为小数形式。 ii)函数成员 构造函数(支持以下方式定义复数对象) Complex c1; // 不带参数 Complex c2(3 阅读全文
posted @ 2021-10-23 15:35 voidsora 阅读(73) 评论(3) 推荐(0) 编辑