摘要: #include <iostream> #include <stdexcept> template <typename T> class Vector { private: int size; T *vec; public: Vector<T>() = default; Vector<T>(int 阅读全文
posted @ 2023-12-17 22:46 呆胶布ovo 阅读(4) 评论(0) 推荐(0) 编辑
摘要: #include<iostream> #include<string> using std::string; class TextCoder { private: string text; void encoder(); void decoder(); public: TextCoder(strin 阅读全文
posted @ 2023-11-30 21:56 呆胶布ovo 阅读(5) 评论(0) 推荐(0) 编辑
摘要: #pragma once #include <iostream> using std::cout; using std::endl; class Point { public: Point(int x0 = 0, int y0 = 0); ~Point() = default; int get_x( 阅读全文
posted @ 2023-11-05 22:40 呆胶布ovo 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 1 #ifndef T_H 2 #define T_H 3 4 #include <iostream> 5 #include <string> 6 7 using namespace std; 8 9 // 类T的声明 10 class T { 11 public: 12 T(int x = 0, 阅读全文
posted @ 2023-10-23 00:01 呆胶布ovo 阅读(12) 评论(0) 推荐(0) 编辑