摘要: #include <iostream> #include <stdexcept> using namespace std; template <typename T> class Vector { private: T* data; int size; public: Vector() : data 阅读全文
posted @ 2023-12-18 10:00 grcvafg 阅读(31) 评论(0) 推荐(0)
摘要: 任务三 pets.hpp #pragma once #include<iostream> #include<string> using namespace std; class MachinePets { public: MachinePets(const string& nickname = "" 阅读全文
posted @ 2023-12-03 21:47 grcvafg 阅读(20) 评论(0) 推荐(0)
摘要: 实验任务5 #pragma once #include<iostream> #include<string> using namespace std; class TextCoder { public: TextCoder() = default; TextCoder(string str); st 阅读全文
posted @ 2023-11-30 22:16 grcvafg 阅读(23) 评论(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 ge 阅读全文
posted @ 2023-11-06 09:50 grcvafg 阅读(20) 评论(0) 推荐(0)
摘要: 实验任务3 complex.hpp #pragma once #include <iostream> #include <string> using namespace std; class User{ public: User(std::string name, std::string passw 阅读全文
posted @ 2023-10-22 21:01 grcvafg 阅读(29) 评论(0) 推荐(0)
摘要: // 标准库string, vector, array基础用法 #include <iostream> #include <string> #include <vector> #include <array> // 函数模板 // 对满足特定条件的序列类型T对象,使用范围for输出 template 阅读全文
posted @ 2023-10-19 11:18 grcvafg 阅读(39) 评论(0) 推荐(0)