anxinchen

导航

2026年11月24日 #

实验三作业

摘要: 实验三 实验任务1 源代码 botton.hpp #pragma once #include <iostream> #include <string> //定义Button类 class Button { public: Button(const std::string& label);//构造函数 阅读全文

posted @ 2026-11-24 13:38 anxinchen 阅读(17) 评论(0) 推荐(0)

2026年11月18日 #

实验2

摘要: 实验任务1 源代码: t.h #pragma once//包含类声明 #include <string> class T { public: T(int x = 0, int y = 0); // 普通构造函数 T(const T& t); // 复制构造函数 T(T&& t); // 移动构造函数 阅读全文

posted @ 2026-11-18 15:06 anxinchen 阅读(9) 评论(0) 推荐(0)

2026年10月18日 #

实验1作业

摘要: 任务1 1.源代码task #include <iostream> #include <string> #include <vector> #include <algorithm> template<typename T> void output(const T &c); void test1(); 阅读全文

posted @ 2026-10-18 20:57 anxinchen 阅读(18) 评论(0) 推荐(0)