摘要: 实验任务一 源码 GradeCalc.cpp: 点击查看代码 #include "GradeCalc.h" #include <algorithm> #include <numeric> #include <stdexcept> void GradeCalc::set_grades(const st 阅读全文
posted @ 2026-12-04 11:41 Wenster 阅读(3) 评论(0) 推荐(0)
摘要: 实验任务1 源码: button.hpp: 点击查看代码 #pragma once #include <iostream> #include <string> class Button { public: Button(const std::string &label); const std::st 阅读全文
posted @ 2026-11-22 21:06 Wenster 阅读(9) 评论(0) 推荐(0)
摘要: 实验任务1 t.h 点击查看代码 #pragma once #include <string> class T { public: T(int x = 0, int y = 0); // 普通构造函数 T(const T &t); // 复制构造函数 T(T &&t); // 移动构造函数 ~T() 阅读全文
posted @ 2026-11-19 00:04 Wenster 阅读(8) 评论(0) 推荐(0)
摘要: 实验结论 实验任务1 源代码 点击查看代码 #include <iostream> #include <string> #include <vector> #include <algorithm> // 模板函数声明 template<typename T> void output(const T 阅读全文
posted @ 2026-10-20 16:46 Wenster 阅读(8) 评论(0) 推荐(0)