摘要:
task4: Vector.hpp: 点击查看代码 #pragma once #include<iostream> #include<stdexcept> using namespace std; template<typename T> class Vector{ private: int siz 阅读全文
摘要:
task3 pets.hpp 点击查看代码 #pragma once #include <iostream> #include <string> using std::cout; using std::endl; using std::string; class MachinePets{ publi 阅读全文
摘要:
task1: 1. 点击查看代码 #include <iostream> using std::cout; using std::endl; // 类A的定义 class A { public: A(int x0, int y0); void display() const; private: in 阅读全文
摘要:
实验任务1: 源代码t.h: 点击查看代码 #pragma once #include <string> // 类T: 声明 class T { // 对象属性、方法 public: T(int x = 0, int y = 0); // 普通构造函数 T(const T &t); // 复制构造函 阅读全文