摘要: #pragma once #include<iostream> #include<stdexcept> using namespace std; template<typename T> class Vector { private: int size; T* ptr; public: Vector 阅读全文
posted @ 2023-12-17 14:01 Tantivy 阅读(19) 评论(0) 推荐(0)
摘要: #include<iostream> #include<string> using namespace std; class MachinePets { private: string nickname; public: MachinePets(const string s) :nickname{ 阅读全文
posted @ 2023-12-03 16:52 Tantivy 阅读(38) 评论(0) 推荐(0)
摘要: #program once #include<iostream> #include<string> using namespace std; class TextCoder{ private: string text; void encoder(); void decoder(); public: 阅读全文
posted @ 2023-12-01 08:14 Tantivy 阅读(30) 评论(0) 推荐(0)
摘要: 任务3 #include "Complex.h" #include<iostream> #include<cmath> Complex::Complex(double real, double imag): real{real}, imag{imag} {} Complex::Complex(con 阅读全文
posted @ 2023-10-23 01:49 Tantivy 阅读(19) 评论(0) 推荐(0)
摘要: #include<iostream> #include<string> #include<vector> #include<array> template<typename T> void output1(const T &obj){ for (auto i: obj) std::cout << " 阅读全文
posted @ 2023-10-20 08:19 Tantivy 阅读(55) 评论(0) 推荐(0)