会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
iuyi's blogs
hello
博客园
首页
新随笔
联系
订阅
管理
2024年12月17日
实验 6
摘要: 实验 6 实验任务 4 // Vector.hpp #include <iostream> #include <stdexcept> #include <memory> template <typename T> class Vector { public: // 构造函数,动态指定大小 expli
阅读全文
posted @ 2024-12-17 17:03 iuy1
阅读(25)
评论(1)
推荐(0)
2024年11月4日
实验3 类和对象_基础编程2
摘要: 实验3 类和对象_基础编程2 实验任务 1 // button.hpp #pragma once #include <iostream> #include <string> using std::cout; using std::string; // 按钮类 class Button { publi
阅读全文
posted @ 2024-11-04 15:39 iuy1
阅读(76)
评论(0)
推荐(0)
2024年10月23日
实验2 类和对象_基础编程1
摘要: 实验2 类和对象_基础编程1 实验任务 1 t.h #pragma once #include <string> // 类T: 声明 class T { // 对象属性、方法 public: T(int x = 0, int y = 0); // 普通构造函数 T(const T &t); // 复
阅读全文
posted @ 2024-10-23 08:47 iuy1
阅读(73)
评论(0)
推荐(0)
2024年10月10日
实验一
摘要: 实验一 实验任务1: // 现代C++标准库、算法库体验 // 本例用到以下内容: // 1. 字符串string, 动态数组容器类vector、迭代器 // 2. 算法库:反转元素次序、旋转元素 // 3. 函数模板、const引用作为形参 #include <algorithm> #includ
阅读全文
posted @ 2024-10-10 19:38 iuy1
阅读(67)
评论(0)
推荐(0)
公告