摘要: 实验2 实验任务一 GradeCalc.cpp #include <algorithm> #include <array> #include <cstdlib> #include <iomanip> #include <iostream> #include <numeric> #include <s 阅读全文
posted @ 2025-12-02 17:38 weiy404 阅读(1) 评论(0) 推荐(0)
摘要: 实验2 实验任务一 : button.hpp: #pragma once #include <iostream> #include <string> class Button { public: Button(const std::string &label_); const std::string 阅读全文
posted @ 2025-11-25 21:04 weiy404 阅读(5) 评论(1) 推荐(0)
摘要: 实验2 实验任务一 : 代码组织: T.h 内容:类T的声明、友元函数声明 T.cpp 内容:类T的实现、友元函数实现 task1.cpp 内容:测试模块、main函数 T.h: #include <string> // 类T: 声明 class T { // 对象属性、方法 public: T(i 阅读全文
posted @ 2025-10-28 20:30 weiy404 阅读(4) 评论(1) 推荐(0)
摘要: 实验1现代C++编程初体验 实验任务一 : task1.cpp: #include <iostream> #include <string> #include <vector> #include <algorithm> template <typename T> void output(const 阅读全文
posted @ 2025-10-13 21:56 weiy404 阅读(10) 评论(1) 推荐(0)