摘要: 1. 实验任务1 GradeCalc.hpp #pragma once #include <vector> #include <array> #include <string> class GradeCalc { public: GradeCalc(const std::string &cname) 阅读全文
posted @ 2025-12-02 19:27 gher 阅读(3) 评论(0) 推荐(0)
摘要: 1. 实验任务1 button.hpp 1 #pragma once 2 3 #include <iostream> 4 #include <string> 5 6 class Button { 7 public: 8 Button(const std::string& label_); 9 con 阅读全文
posted @ 2025-11-24 21:13 gher 阅读(5) 评论(1) 推荐(0)
摘要: 1. 实验任务1 T.h 1 #pragma once 2 3 #include <string> 4 5 // 类T: 声明 6 class T { 7 // 对象属性、方法 8 public: 9 T(int x = 0, int y = 0); // 普通构造函数 10 T(const T & 阅读全文
posted @ 2025-10-28 21:07 gher 阅读(6) 评论(1) 推荐(0)
摘要: 任务1: 源代码task1.cpp 1 #include <iostream> 2 #include <string> 3 #include <vector> 4 #include <algorithm> 5 6 7 template<typename T> 8 void output(const 阅读全文
posted @ 2025-10-17 19:39 gher 阅读(11) 评论(1) 推荐(0)