摘要: 1.实验任务1 GradeCalc.hpp源码 点击查看代码 #pragma once #include <vector> #include <array> #include <string> class GradeCalc { public: GradeCalc(const std::string 阅读全文
posted @ 2025-12-02 23:45 陈晨aaa 阅读(2) 评论(1) 推荐(0)
摘要: 1.实验任务1 button.hpp源码 点击查看代码 #pragma once #include <iostream> #include <string> class Button { public: Button(const std::string &label_); const std::st 阅读全文
posted @ 2025-11-25 23:53 陈晨aaa 阅读(6) 评论(1) 推荐(0)
摘要: 1.实验任务1 T.h源码 点击查看代码 #pragma once #include <string> // 类T: 声明 class T { // 对象属性、方法 public: T(int x = 0, int y = 0); // 普通构造函数 T(const T &t); // 复制构造函数 阅读全文
posted @ 2025-10-28 23:47 陈晨aaa 阅读(10) 评论(1) 推荐(0)
摘要: 实验任务1 task1.cpp 点击查看代码 #include <iostream> #include <string> #include <vector> #include <algorithm> template<typename T> void output(const T &c); void 阅读全文
posted @ 2025-10-17 23:27 陈晨aaa 阅读(11) 评论(1) 推荐(0)