会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
zz00
博客园
首页
新随笔
联系
订阅
管理
2024年12月17日
实验6
摘要: 实验任务4 Vector.hpp代码 点击查看代码 #include<iostream> #include<stdexcept> using namespace std; template<typename T> class Vector{ public: Vector(int n); Vector
阅读全文
posted @ 2024-12-17 17:04 Z泽
阅读(19)
评论(0)
推荐(0)
2024年12月2日
实验5
摘要: 实验任务3 pets.hpp代码 点击查看代码 #include<iostream> #include<string> using namespace std; class MachinePets{ public: MachinePets(const string s); virtual strin
阅读全文
posted @ 2024-12-02 19:22 Z泽
阅读(17)
评论(0)
推荐(0)
2024年11月19日
实验4
摘要: 实验任务2 Gradecalc.hpp代码 点击查看代码 #include <iostream> #include <vector> #include <string> #include <algorithm> #include <numeric> #include <iomanip> using
阅读全文
posted @ 2024-11-19 19:51 Z泽
阅读(19)
评论(0)
推荐(0)
2024年11月5日
实验三
摘要: 实验任务1 button.hpp代码 点击查看代码 #pragma once #include <iostream> #include <string> using std::string; using std::cout; // 按钮类 class Button { public: Button(
阅读全文
posted @ 2024-11-05 16:25 Z泽
阅读(25)
评论(0)
推荐(0)
2024年10月23日
实验2
摘要: 实验任务1 t.h代码 点击查看代码 #pragma once #include <string> // 类T: 声明 class T { // 对象属性、方法 public: T(int x = 0, int y = 0); // 普通构造函数 T(const T &t); // 复制构造函数 T
阅读全文
posted @ 2024-10-23 14:32 Z泽
阅读(28)
评论(0)
推荐(0)
2024年10月9日
实验1 现代C++编程初体验
摘要: 任务一 #include <iostream> #include <string> #include <vector> #include <algorithm> using namespace std; template<typename T> void output(const T &c); vo
阅读全文
posted @ 2024-10-09 16:39 Z泽
阅读(24)
评论(0)
推荐(0)
公告