摘要: 实验任务二 Person类 #include<iostream> #include<string> using namespace std; class Person { public: Person(){}; Person(string name,string telephone,string e 阅读全文
posted @ 2021-12-14 23:50 suu` 阅读(25) 评论(2) 推荐(0) 编辑
摘要: 继承 阅读全文
posted @ 2021-11-24 20:25 suu` 阅读(20) 评论(2) 推荐(0) 编辑
摘要: 任务四 Vector_int类定义如下: #include<iostream> #include <cassert> using namespace std; class Vector_int{ public: Vector_int(int Size,int Value = 0); Vector_i 阅读全文
posted @ 2021-11-10 00:10 suu` 阅读(12) 评论(3) 推荐(0) 编辑
摘要: STL使用 阅读全文
posted @ 2021-10-27 21:41 suu` 阅读(43) 评论(4) 推荐(0) 编辑
摘要: 实验三 实验三代码如下: 1、Complex类实现: #include<iostream> #include<cmath> class Complex{ public: Complex(){ } Complex(double x,double y=0){ a = x; b = y; } Comple 阅读全文
posted @ 2021-10-26 20:05 suu` 阅读(13) 评论(4) 推荐(0) 编辑