摘要: task4 Vector.hpp: 1 #pragma once 2 #include<bits/stdc++.h> 3 using namespace std; 4 template<typename T> 5 class Vector 6 { 7 private: 8 int size; 9 T 阅读全文
posted @ 2022-11-30 17:29 一路走好真君 阅读(25) 评论(0) 推荐(0) 编辑
摘要: task4 Pets.hpp 1 #pragma once 2 #include<bits/stdc++.h> 3 using namespace std; 4 class MachinePets 5 { 6 private: 7 string nickname; 8 public: 9 Machi 阅读全文
posted @ 2022-11-27 20:12 一路走好真君 阅读(10) 评论(0) 推荐(0) 编辑
摘要: task5. 1 #pragma once 2 #include <bits/stdc++.h> 3 using namespace std; 4 class vectorInt { 5 public: 6 vectorInt(int n); 7 vectorInt(int n,int value) 阅读全文
posted @ 2022-11-02 18:04 一路走好真君 阅读(21) 评论(0) 推荐(0) 编辑
摘要: task.5 某独立音乐人要举办一场免费小型liveshow。livehouse场地容量有限,最多容纳100位乐迷听众。现通 过某平台开通线上预约登记 1 #pragma once 2 #include<bits/stdc++.h> 3 using namespace std; 4 class In 阅读全文
posted @ 2022-10-19 22:02 一路走好真君 阅读(8) 评论(0) 推荐(0) 编辑
摘要: 实验4 不使用C++标准库,自行设计并实现一个简化版复数类Complex. 1 #pragma once 2 #include<bits/stdc++.h> 3 using namespace std; 4 class Complex 5 { 6 public: 7 Complex(double a 阅读全文
posted @ 2022-10-12 18:29 一路走好真君 阅读(25) 评论(0) 推荐(0) 编辑
摘要: 实验任务2 使用C++语言特性中支持面向对象的语法,实现一个Point类来描述点的基础属性和操作。 1 #include<iostream> 2 using namespace std; 3 class Point { 4 public: 5 Point(int x0 = 1, int y0 = 2 阅读全文
posted @ 2022-09-29 09:25 一路走好真君 阅读(6) 评论(0) 推荐(0) 编辑