摘要: #include <iostream> #include "Vector.hpp" void test() { using namespace std; int n; cin >> n; Vector<double> x1(n); for (auto i = 0; i < n; ++i) x1.at 阅读全文
posted @ 2023-12-18 09:42 骑美利达的猪 阅读(18) 评论(0) 推荐(0)
摘要: #program once #include<iostream> #include<string> using namespace std; class TextCoder{ private: string text; void encoder(); #include "textcoder.hpp" 阅读全文
posted @ 2023-12-01 09:55 骑美利达的猪 阅读(26) 评论(0) 推荐(0)
摘要: 1. hpp #include <iostream> using std::cout; using std::endl; class Point { public: Point(int x0 = 0, int y0 = 0); ~Point() = default; int get_x() cons 阅读全文
posted @ 2023-11-05 21:43 骑美利达的猪 阅读(25) 评论(0) 推荐(0)
摘要: task 3: task 4: task 5: 阅读全文
posted @ 2023-10-22 23:57 骑美利达的猪 阅读(20) 评论(0) 推荐(0)
摘要: task 1: #include <iostream> #include <string> #include <vector> #include <array> template<typename T> void output1(const T &obj) { for (auto i : obj) 阅读全文
posted @ 2023-10-19 23:44 骑美利达的猪 阅读(28) 评论(0) 推荐(0)