12 2023 档案

摘要:实验任务4Vector.hpp源代码 1 #include <iostream> 2 #include <stdexcept> 3 4 template <typename T> 5 class Vector { 6 private: 7 int size; 8 T *vec; 9 public: 阅读全文
posted @ 2023-12-17 16:45 张文瑞 阅读(30) 评论(0) 推荐(0)
摘要:实验任务3pets.hpp源码 1 #include <iostream> 2 using std::string; 3 class MachinePets { 4 private: 5 string nickname; 6 public: 7 MachinePets(const string s) 阅读全文
posted @ 2023-12-04 09:39 张文瑞 阅读(14) 评论(0) 推荐(0)
摘要:实验任务5TextCoder.hpp源码 1 #include<iostream> 2 #include<string> 3 4 using std::string; 5 6 class TextCoder { 7 private: 8 string text; 9 void encoder(); 阅读全文
posted @ 2023-12-01 00:19 张文瑞 阅读(31) 评论(0) 推荐(0)