摘要: task4.cpp: 点击查看代码 #include <iostream> #include "vector.hpp" void test() { using namespace std; int n; cin >> n; Vector<double> x1(n); for (auto i = 0; 阅读全文
posted @ 2023-12-17 12:08 干饭中,请勿打扰 阅读(41) 评论(0) 推荐(0)
摘要: 实验五 TextCoder.hpp 点击查看代码 #include <string> class TextCoder { private: std::string text; void encoder() { for (char& c : text) { if (c >= 'a' && c <= ' 阅读全文
posted @ 2023-11-30 12:22 干饭中,请勿打扰 阅读(39) 评论(0) 推荐(0)
摘要: 任务一 task1.cpp 点击查看代码 #include <iostream> #include "point.hpp" #include <vector> using std::vector; using std::cin; void output(const vector<Point> &v) 阅读全文
posted @ 2023-11-05 21:18 干饭中,请勿打扰 阅读(31) 评论(0) 推荐(0)
摘要: 试验任务三 complex.hpp 点击查看代码 #pragma once #include<iostream> #include<cmath> class Complex{ public : Complex(double r=0,double i=0){ real=r;imag=i ;} Comp 阅读全文
posted @ 2023-10-22 19:37 干饭中,请勿打扰 阅读(28) 评论(0) 推荐(0)
摘要: 任务一 点击查看代码 #include<iostream> #include<string> #include<vector> #include<array> template<typename T> void output1(const T &obj){ for(auto i:obj) std:: 阅读全文
posted @ 2023-10-19 23:04 干饭中,请勿打扰 阅读(28) 评论(0) 推荐(0)