摘要: task3: 3.1代码: #include <iostream> #include <fstream> #include <array> #define N 5 int main() { using namespace std; array<int, N> x {97, 98, 99, 100, 阅读全文
posted @ 2022-12-07 09:13 动次打次的动点P 阅读(18) 评论(0) 推荐(0) 编辑
摘要: task4: pets.hpp: #pragma once #include<iostream> #include<string> using namespace std; class MachinePets { public: MachinePets(){ } MachinePets(const 阅读全文
posted @ 2022-11-30 11:27 动次打次的动点P 阅读(2) 评论(0) 推荐(0) 编辑
摘要: task 5: #include<iostream> #include <cassert> #include<stdlib.h> #define value 1 using namespace std; class vectorint { public: vectorint(int a) { ele 阅读全文
posted @ 2022-11-09 08:41 动次打次的动点P 阅读(15) 评论(0) 推荐(0) 编辑
摘要: #include "info.hpp" #include <iostream> #include<vector> #include<cstring> int main() { int count=0; const int capacity=100; vector<Info>audience_info 阅读全文
posted @ 2022-10-25 20:37 动次打次的动点P 阅读(15) 评论(0) 推荐(0) 编辑
摘要: 实验任务4: Complex.hpp: #pragma once #include<iostream> #include<string> #include<iomanip> #include<math.h> using namespace std; class Complex { public: C 阅读全文
posted @ 2022-10-15 13:01 动次打次的动点P 阅读(17) 评论(0) 推荐(0) 编辑
摘要: #include "Complex.hpp" #include <iostream> void test() { using namespace std; Complex c1(3, -4); const Complex c2(4.5); Complex c3(c1); cout << "c1 = 阅读全文
posted @ 2022-10-12 17:00 动次打次的动点P 阅读(26) 评论(0) 推荐(0) 编辑
摘要: 实验任务2: #include<iostream> using namespace std; class Point {public: Point(int x0 = 0, int y0 = 0); Point(const Point&p ); ~Point() = default; int get_ 阅读全文
posted @ 2022-10-05 15:56 动次打次的动点P 阅读(6) 评论(0) 推荐(0) 编辑