摘要: 1 #include<iostream> 2 #include <fstream> 3 #include <string> 4 #include <iomanip> 5 #include<vector> 6 #include<conio.h> 7 #define max 9999 8 const i 阅读全文
posted @ 2023-12-23 21:13 dmsx 阅读(27) 评论(0) 推荐(0)
摘要: 任务四 task4.cpp 1 #include <iostream> 2 #include "vector.hpp" 3 void test() 4 { 5 using namespace std; 6 int n; 7 cin >> n; 8 9 Vector<double> x1(n); 10 阅读全文
posted @ 2023-12-13 20:23 dmsx 阅读(35) 评论(0) 推荐(0)
摘要: 任务一 publisher.hpp 1 #pragma once 2 3 #include <iostream> 4 #include <string> 5 6 using std::cout; 7 using std::endl; 8 using std::string; 9 10 // 发行/出 阅读全文
posted @ 2023-12-02 17:37 dmsx 阅读(42) 评论(0) 推荐(0)
摘要: 任务五 textcoder.hpp 1 #include <iostream> 2 #include <vector> 3 #include <string> 4 #include <iomanip> 5 using namespace std; 6 class TextCoder 7 { 8 pr 阅读全文
posted @ 2023-11-28 19:02 dmsx 阅读(25) 评论(0) 推荐(0)
摘要: 任务一 task1.cpp 1 #include <iostream> 2 #include "point.hpp" 3 #include <vector> 4 using std::vector; 5 using std::cin; 6 void output(const vector<Point 阅读全文
posted @ 2023-11-03 18:45 dmsx 阅读(42) 评论(0) 推荐(0)
摘要: 任务一 t.h 1 #ifndef T_H 2 #define T_H 3 #include <iostream> 4 #include <string> 5 using namespace std; 6 class T 7 { 8 public: 9 T(int x=0,int y=0); 10 阅读全文
posted @ 2023-10-16 23:07 dmsx 阅读(47) 评论(0) 推荐(0)
摘要: 任务一 1 #include<iostream> 2 #include<string> 3 #include<vector> 4 #include<array> 5 template<typename T> 6 void output1(const T &obj) 7 { 8 for(auto i: 阅读全文
posted @ 2023-10-15 11:02 dmsx 阅读(45) 评论(0) 推荐(0)