摘要: 4.hpp #include<iostream> #include<stdexcept> template<typename T> class Vector { private: int size; T* p; public: Vector<T>(int s); Vector<T>(int s, T 阅读全文
posted @ 2023-12-17 19:49 孤独的z 阅读(15) 评论(0) 推荐(0)
摘要: 3.hpp #include<iostream> #include<string> using namespace std; class MachinePets { public: MachinePets(const string s); MachinePets(); string get_nick 阅读全文
posted @ 2023-12-02 21:14 孤独的z 阅读(56) 评论(0) 推荐(0)
摘要: Textcoder.hpp #include<iostream> #include<string> using namespace std; class Textcoder { public: Textcoder(string t); string get_ciphertext(); string 阅读全文
posted @ 2023-11-29 21:39 孤独的z 阅读(20) 评论(0) 推荐(0)
摘要: 1.Point.h #pragma once #include<iostream> using std::cout; using std::endl; class Point { public: Point(int x0 = 0, int y0 = 0); ~Point() = default; i 阅读全文
posted @ 2023-11-05 18:14 孤独的z 阅读(26) 评论(0) 推荐(0)
摘要: 3.c.hpp#include <iostream> #include <cmath> class Complex { public: Complex(double r = 0, double i = 0); Complex(const Complex& c); double get_real() 阅读全文
posted @ 2023-10-22 23:09 孤独的z 阅读(18) 评论(0) 推荐(0)
摘要: #include <iostream> #include <string> #include <vector> #include <array> template<typename T> void output1(const T& obj) { for (auto i : obj) std::cou 阅读全文
posted @ 2023-10-19 22:53 孤独的z 阅读(22) 评论(0) 推荐(0)