摘要: task1: Gradecalc.hpp #pragma once #include <vector> #include <array> #include <string> class GradeCalc { public: GradeCalc(const std::string &cname); 阅读全文
posted @ 2025-11-30 21:46 彤彤酱 阅读(6) 评论(1) 推荐(0)
摘要: task1: button.hpp #pragma once #include <iostream> #include <string> class Button { public: Button(const std::string &label_); const std::string& get_ 阅读全文
posted @ 2025-11-22 19:12 彤彤酱 阅读(13) 评论(1) 推荐(0)
摘要: task1: 代码组织: T.h 内容:类T的声明、友元函数声明 T.cpp 内容:类T的实现、友元函数实现 task1.cpp 内容:测试模块、main函数 T.h : #pragma once #include <string> // 类T: 声明class T { // 对象属性、方法 pub 阅读全文
posted @ 2025-10-28 21:11 彤彤酱 阅读(12) 评论(1) 推荐(0)
摘要: 任务一: 源代码task1.cpp #include <iostream> #include <string> #include <vector> #include <algorithm> // 模板函数声明 template<typename T> void output(const T &c); 阅读全文
posted @ 2025-10-13 21:21 彤彤酱 阅读(18) 评论(1) 推荐(0)