摘要: 1. 实验任务2 Person.hpp源码和task2.cpp源码 Person,hpp: 1 #ifndef PERSON_HPP 2 #define PERSON_HPP 3 #include <iostream> 4 #include <iomanip> 5 #include<string> 阅读全文
posted @ 2021-12-11 10:12 热橙汁 阅读(34) 评论(3) 推荐(0)
摘要: 1.实验任务2 验证性实验。 在C++编码环境中,输入task2.cpp。 task2.cpp: 1 #include <iostream> 2 #include <typeinfo> 3 4 // definitation of Graph 5 class Graph 6 { 7 public: 阅读全文
posted @ 2021-11-26 19:14 热橙汁 阅读(37) 评论(3) 推荐(0)
摘要: 实验任务4: 不使用标准库模板类vector,自己动手设计并实现一个动态的整型数组类Vector_int。 程序包括vector_int.hpp和task4.cpp。 vector_int.hpp: 1 #ifndef VECTOR_INT_HPP 2 #define VECTOR_INT_HPP 阅读全文
posted @ 2021-11-07 10:29 热橙汁 阅读(33) 评论(3) 推荐(0)
摘要: 实验任务5: livehouse场地容量有限,最多容纳100位乐迷听众,现通过某平台开通线上预约登记。 请设计线上预约登记信息类Info。 ​程序包括 Info.hpp与 task5.cpp 。 Info.hpp: #ifndef INFO_HPP#define INFO_HPP#include < 阅读全文
posted @ 2021-10-28 19:04 热橙汁 阅读(65) 评论(3) 推荐(0)
摘要: 实验任务3 Complex类的自我实现 ​ 简要说明:不使用C++标准库,自行设计并实现一个复数类Complex,并满足简单的使用需求。 ​ 程序包括 Complex.hpp与 task3.cpp 。 ​ Complex.hpp: 1 #ifndef COMPLEX_HPP 2 #define CO 阅读全文
posted @ 2021-10-23 14:47 热橙汁 阅读(69) 评论(4) 推荐(0)