会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
xun-1
博客园
首页
新随笔
联系
订阅
管理
2023年12月17日
实验6
摘要: 任务4 #include <iostream> #include "Vector.hpp" using namespace std; template<typename T> void output(const Vector<T>& v){ for(auto i=0;i<v.get_size();i
阅读全文
posted @ 2023-12-17 15:17 音也
阅读(13)
评论(0)
推荐(0)
2023年12月4日
实验5
摘要: 任务3 #pragma once #include<iostream> #include<string> using std::cout; using std::cin; using std::endl; using std::string; class MachinePets{ public: M
阅读全文
posted @ 2023-12-04 00:25 音也
阅读(9)
评论(0)
推荐(0)
2023年12月1日
实验4
摘要: 任务5 #pragma once #include<iostream> #include<string> using namespace std; class TextCoder { public: TextCoder(string text0) : text{ text0 } {}; string
阅读全文
posted @ 2023-12-01 01:36 音也
阅读(9)
评论(0)
推荐(0)
2023年11月6日
实验3 类与数组、指针
摘要: 任务1 task1.cpp 1 #include <iostream> 2 #include "point.hpp" 3 #include <vector> 4 using std::vector; 5 using std::cin; 6 void output(const vector<Point
阅读全文
posted @ 2023-11-06 01:19 音也
阅读(13)
评论(0)
推荐(0)
2023年10月23日
实验二
摘要: 任务1 方式1 1 #ifndef T_H 2 #define T_H 3 #include <iostream> 4 #include <string> 5 using namespace std; 6 class T { 7 public: 8 T(int x = 0, int y = 0);
阅读全文
posted @ 2023-10-23 01:20 音也
阅读(10)
评论(0)
推荐(0)
2023年10月20日
实验一 类和对象
摘要: 实验任务1: 1 #include<iostream> 2 #include<string> 3 #include<vector> 4 #include<array> 5 6 7 // 函数模板 8 // 对满足特定条件的序列类型T对象,使用范围for输出 9 template<typename T
阅读全文
posted @ 2023-10-20 00:59 音也
阅读(14)
评论(0)
推荐(0)
公告
点击右上角即可分享