NFurioso

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2023年12月17日

摘要: 实验任务1 Complex.hpp #pragma once #include <iostream> #include <stdexcept> template<typename T> class Complex { public: Complex(T r = 0, T i = 0): real{r 阅读全文
posted @ 2023-12-17 16:32 NFurioso 阅读(7) 评论(0) 推荐(0) 编辑

2023年12月3日

摘要: 实验任务1 publisher.hpp #pragma once #include <iostream> #include <string> using std::cout; using std::endl; using std::string; class Publisher { public: 阅读全文
posted @ 2023-12-03 19:25 NFurioso 阅读(11) 评论(0) 推荐(0) 编辑

2023年11月30日

摘要: 实验任务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 阅读全文
posted @ 2023-11-30 19:14 NFurioso 阅读(14) 评论(0) 推荐(0) 编辑

2023年11月5日

摘要: 任务一 task1.cpp #include <iostream> #include <string> #include <vector> #include <array> template<typename T> void output1(const T &obj){ for(auto i: ob 阅读全文
posted @ 2023-11-05 20:40 NFurioso 阅读(3) 评论(0) 推荐(0) 编辑

摘要: 任务一 point.hpp #pragma once #include <iostream> using std::cout; using std::endl; class Point { public: Point(int x0 = 0, int y0 = 0); ~Point() = defau 阅读全文
posted @ 2023-11-05 19:53 NFurioso 阅读(8) 评论(0) 推荐(0) 编辑

2023年10月22日

摘要: 实验一 方式一 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 阅读全文
posted @ 2023-10-22 19:17 NFurioso 阅读(10) 评论(0) 推荐(0) 编辑