10 2024 档案

摘要:实验任务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 阅读(23) 评论(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 阅读(26) 评论(0) 推荐(0)