摘要: 实验任务1 源代码如下: GradeCalc.hpp 点击查看代码 #pragma once #include <vector> #include <array> #include <string> class GradeCalc { public: GradeCalc(const std::str 阅读全文
posted @ 2025-12-02 16:34 OSCR 阅读(2) 评论(0) 推荐(0)
摘要: 实验任务1 源代码如下: button.hpp 点击查看代码 #pragma once #include <iostream> #include <string> class Button { public: Button(const std::string &label_); const std: 阅读全文
posted @ 2025-11-25 22:00 OSCR 阅读(1) 评论(1) 推荐(0)
摘要: 实验任务 源代码如下: T.h 点击查看代码 #pragma once #include <string> class T { public: T(int x = 0, int y = 0); T(const T &t); T(T &&t); ~T(); void adjust(int ratio) 阅读全文
posted @ 2025-10-27 21:50 OSCR 阅读(11) 评论(1) 推荐(0)
摘要: 任务1 源代码: 点击查看代码 #include <iostream> #include <string> #include <vector> #include <algorithm> template<typename T> void output(const T &c); void test1( 阅读全文
posted @ 2025-10-16 23:47 OSCR 阅读(11) 评论(1) 推荐(0)