摘要: 实验任务4 #pragma once #include<iostream> #include<stdexcept> using namespace std; template<typename T> class Vector { public: Vector(int n); Vector(int n 阅读全文
posted @ 2023-12-17 22:51 ~Lucky 阅读(37) 评论(0) 推荐(0)
摘要: 实验任务3 #pragma once #include<iostream> #include<string> using namespace std; class MachinePets { public: MachinePets(const string s); string get_nickna 阅读全文
posted @ 2023-12-03 21:50 ~Lucky 阅读(22) 评论(0) 推荐(0)
摘要: 实验任务5 #pragma once #include<iostream> #include<string> using namespace std; class TextCoder { public: TextCoder() = default; TextCoder(string str); st 阅读全文
posted @ 2023-11-27 16:08 ~Lucky 阅读(43) 评论(0) 推荐(0)
摘要: 实验任务1 #pragma once #include <iostream> using std::cout; using std::endl; class Point { public: Point(int x0 = 0, int y0 = 0); ~Point() = default; int 阅读全文
posted @ 2023-11-05 16:37 ~Lucky 阅读(34) 评论(0) 推荐(0)
摘要: 实验任务3 Complex.hpp #pragma once #include <iostream> #include <cmath> class Complex { public: Complex(double r = 0, double i = 0) { real = r; imag = i; 阅读全文
posted @ 2023-10-21 21:01 ~Lucky 阅读(31) 评论(0) 推荐(0)
摘要: 实验任务1 #include <iostream> #include <string> #include <vector> #include <array> template<typename T> void output1(const T &obj) { for(auto i: obj) std: 阅读全文
posted @ 2023-10-16 16:39 ~Lucky 阅读(29) 评论(0) 推荐(0)