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
阅读全文
摘要:实验任务1 代码: #include <iostream> #include <string> #include <vector> #include <algorithm> using namespace std; // 声明 // 模板函数声明 template<typename T> void
阅读全文
浙公网安备 33010602011771号