摘要: 任务4 #include <iostream> #include "Vector.hpp" using namespace std; template<typename T> void output(const Vector<T>& v){ for(auto i=0;i<v.get_size();i 阅读全文
posted @ 2023-12-17 15:17 音也 阅读(13) 评论(0) 推荐(0)
摘要: 任务3 #pragma once #include<iostream> #include<string> using std::cout; using std::cin; using std::endl; using std::string; class MachinePets{ public: M 阅读全文
posted @ 2023-12-04 00:25 音也 阅读(9) 评论(0) 推荐(0)
摘要: 任务5 #pragma once #include<iostream> #include<string> using namespace std; class TextCoder { public: TextCoder(string text0) : text{ text0 } {}; string 阅读全文
posted @ 2023-12-01 01:36 音也 阅读(9) 评论(0) 推荐(0)
摘要: 任务1 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-06 01:19 音也 阅读(13) 评论(0) 推荐(0)
摘要: 任务1 方式1 1 #ifndef T_H 2 #define T_H 3 #include <iostream> 4 #include <string> 5 using namespace std; 6 class T { 7 public: 8 T(int x = 0, int y = 0); 阅读全文
posted @ 2023-10-23 01:20 音也 阅读(10) 评论(0) 推荐(0)
摘要: 实验任务1: 1 #include<iostream> 2 #include<string> 3 #include<vector> 4 #include<array> 5 6 7 // 函数模板 8 // 对满足特定条件的序列类型T对象,使用范围for输出 9 template<typename T 阅读全文
posted @ 2023-10-20 00:59 音也 阅读(14) 评论(0) 推荐(0)
点击右上角即可分享
微信分享提示