摘要: 实验任务1: Button.hpp,Window.hpp,task1.cpp,源码,运行测试结果如下 #pragma once #include <iostream> #include <string> using std::string; using std::cout; // 按钮类 class 阅读全文
posted @ 2024-11-09 16:25 DownJackring 阅读(18) 评论(0) 推荐(0)
摘要: 实验任务1: t.h, t.cpp, task1.cpp源码,运行测试结果如下 //t.h内容为类T的申明,友元函数的声明 #pragma once #include <string> class T { public: T(int x=0, int y=0); T(const T &t); T(T 阅读全文
posted @ 2024-10-28 16:28 DownJackring 阅读(18) 评论(0) 推荐(0)
摘要: 实验任务1 代码: #include <iostream> #include <string> #include <vector> #include <algorithm> using namespace std; // 声明 // 模板函数声明 template<typename T> void 阅读全文
posted @ 2024-10-15 10:04 DownJackring 阅读(22) 评论(0) 推荐(0)