摘要: 实验任务一: 源代码: 1 #pragma once 2 #include <vector> 3 #include <array> 4 #include <string> 5 class GradeCalc { 6 public: 7 GradeCalc(const std::string& cna 阅读全文
posted @ 2025-11-30 12:14 pithia 阅读(5) 评论(0) 推荐(0)
摘要: 实验任务一: 源代码: button.hpp 1 #pragma once 2 #include <iostream> 3 #include <string> 4 class Button { 5 public: 6 Button(const std::string& label_); 7 cons 阅读全文
posted @ 2025-11-24 16:18 pithia 阅读(14) 评论(1) 推荐(0)
摘要: 实验任务一: 源代码: T.h 1 #pragma once 2 #include<string> 3 class T 4 { 5 public: 6 T(int x = 0, int y = 0); // 普通构造函数 7 T(const T& t); // 复制构造函数 8 T(T&& t); 阅读全文
posted @ 2025-10-26 18:29 pithia 阅读(10) 评论(1) 推荐(0)
摘要: 实验任务一源代码: 1 #include<iostream> 2 #include<string> 3 #include<vector> 4 #include<algorithm> 5 template<typename T> 6 void output(const T& c); 7 void te 阅读全文
posted @ 2025-10-17 20:52 pithia 阅读(15) 评论(1) 推荐(0)