摘要:
实验任务1 源代码: #pragma once #include <iostream> #include <stdexcept> // 复数模板类声明 template<typename T> class Complex { public: Complex(T r = 0, T i = 0): re 阅读全文
摘要:
实验任务1 源代码: #pragma once #include <iostream> #include <string> using std::cout; using std::endl; using std::string; // 发行/出版物类:Publisher (抽象类) class Pu 阅读全文
摘要:
实验任务1 point.hpp #pragma once #include <iostream> using std::cout; using std::endl; class Point { public: Point(int x0 = 0, int y0 = 0); ~Point() = def 阅读全文
摘要:
实验任务1 demo1.dev 方法一 #ifndef T_H #define T_H #include <iostream> #include <string> using namespace std; // 类T的声明 class T { public: T(int x = 0, int y = 阅读全文