摘要: 实验任务一: 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-20 00:30 cyxyyy 阅读(7) 评论(0) 推荐(0)
摘要: 任务1 源代码: 点击查看代码 #include <iostream> #include <string> #include <vector> #include <algorithm> template<typename T> void output(const T &c); void test1( 阅读全文
posted @ 2026-10-18 23:30 cyxyyy 阅读(9) 评论(0) 推荐(0)