摘要:
实验任务1 Complex.hpp #pragma once #include <iostream> #include <stdexcept> template<typename T> class Complex { public: Complex(T r = 0, T i = 0): real{r 阅读全文
摘要:
实验任务1 Complex.hpp #pragma once #include <iostream> #include <stdexcept> template<typename T> class Complex { public: Complex(T r = 0, T i = 0): real{r 阅读全文
摘要:
实验任务1 publisher.hpp #pragma once #include <iostream> #include <string> using std::cout; using std::endl; using std::string; class Publisher { public: 阅读全文
摘要:
实验任务1 task1 task1_1.cpp #include <iostream> using std::cout; using std::endl; class A{ public: A(int x0, int y0): x{ x0 }, y{ y0 } {} void show() cons 阅读全文
摘要:
任务一 task1.cpp #include <iostream> #include <string> #include <vector> #include <array> template<typename T> void output1(const T &obj){ for(auto i: ob 阅读全文
摘要:
任务一 point.hpp #pragma once #include <iostream> using std::cout; using std::endl; class Point { public: Point(int x0 = 0, int y0 = 0); ~Point() = defau 阅读全文
摘要:
实验一 方式一 t.h #ifndef T_H #define T_H #include <iostream> #include <string> using namespace std; class T { public: T(int x = 0, int y = 0); T(const T &t 阅读全文
|