摘要: 任务五 代码: vectorInt: #pragma once #include<iostream> #include<cassert> using namespace std; class VectorInt{ public: VectorInt(int s); VectorInt(int s,i 阅读全文
posted @ 2022-11-08 23:28 lovessr 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 实验五 代码: info.hpp: #pragma once #include<iostream> using namespace std; class info{ public: info(string ni="",string co="",string ci="",int n0=0):nickn 阅读全文
posted @ 2022-10-25 23:20 lovessr 阅读(0) 评论(0) 推荐(0) 编辑
摘要: 实验二任务四 代码: Complex.hpp: #pragma once #include<iostream> #include"math.h" using namespace std; class Complex{ public: Complex(double r = 0.0,double i = 阅读全文
posted @ 2022-10-18 16:42 lovessr 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 实验二: 代码如下: #include<iostream> using namespace std; class Point{ public: Point(int x0 = 0, int y0 = 0); Point(const Point &p); ~Point()=default; int ge 阅读全文
posted @ 2022-10-03 17:35 lovessr 阅读(5) 评论(0) 推荐(0) 编辑