yhjXW

导航

 

2024年12月22日

摘要: 任务4: Vector.hpp 1 #include<bits/stdc++.h> 2 using namespace std; 3 template <typename T> 4 class Vector{ 5 public: 6 Vector(int size,int value=0):size 阅读全文
posted @ 2024-12-22 09:32 於泓瑾 阅读(11) 评论(0) 推荐(0)
 

2024年12月8日

摘要: 任务1: task1.cpp 1 #include "publisher.hpp" 2 #include <vector> 3 #include <typeinfo> 4 5 using std::vector; 6 7 void test() { 8 vector<Publisher *> v; 阅读全文
posted @ 2024-12-08 20:39 於泓瑾 阅读(15) 评论(0) 推荐(0)
 

2024年11月24日

摘要: 任务1: task1.cpp 1 #include <iostream> 2 3 using std::cout; 4 using std::endl; 5 6 // 类A的定义 7 class A { 8 public: 9 A(int x0, int y0); 10 void display() 阅读全文
posted @ 2024-11-24 21:57 於泓瑾 阅读(19) 评论(0) 推荐(0)
 

2024年11月10日

摘要: 任务1: window.cpp 1 #pragma once 2 #include"button.hpp" 3 #include<vector> 4 //vector 5 #include<iostream> 6 7 using std::vector; 8 using std::cout; 9 u 阅读全文
posted @ 2024-11-10 14:06 於泓瑾 阅读(18) 评论(0) 推荐(0)
 

2024年10月28日

摘要: 任务1: 源代码task1.cpp t.cpp 1 #include "t.h" 2 #include <iostream> 3 #include <string> 4 5 using std::cout; 6 using std::endl; 7 using std::string; 8 9 // 阅读全文
posted @ 2024-10-28 19:32 於泓瑾 阅读(38) 评论(0) 推荐(0)
 

2024年10月14日

摘要: 任务1: 源代码task1.cpp 1 #include<bits/stdc++.h> 2 using namespace std; 3 4 //模板函数声明 5 template<typename T> 6 void output(const T &c); 7 8 //普通函数声明 9 void 阅读全文
posted @ 2024-10-14 19:53 於泓瑾 阅读(52) 评论(0) 推荐(0)