摘要: 实验任务4 vector.hpp #include<iostream> #include<stdexcept> #include <cassert> using namespace std; template<typename T> class Vector { private: T* ptr; i 阅读全文
posted @ 2023-12-17 19:35 moliqi 阅读(16) 评论(0) 推荐(0)
摘要: 实验任务三 pets.hpp #pragma once #include <iostream> #include <string> using namespace std; class MachinePets { protected: string nickname; public: Machine 阅读全文
posted @ 2023-12-04 09:51 moliqi 阅读(36) 评论(0) 推荐(0)
摘要: 实验任务5 task5.cpp #include"Textcoder.hpp" #include<iostream> #include<string> void test() { using namespace std; string text, encoded_text, decoded_text 阅读全文
posted @ 2023-11-30 20:23 moliqi 阅读(23) 评论(0) 推荐(0)
摘要: 实验任务1 1 #pragma once 2 3 #include <iostream> 4 using std::cout; 5 using std::endl; 6 7 class Point { 8 public: 9 Point(int x0 = 0, int y0 = 0); 10 ~Po 阅读全文
posted @ 2023-11-06 09:40 moliqi 阅读(20) 评论(0) 推荐(0)