会员
周边
众包
新闻
博问
闪存
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
rxt711
博客园
首页
新随笔
联系
订阅
管理
2024年12月16日
实验6 模板类、文件I/O和异常处理
摘要: 任务1 Complex.hpp 1 #pragma once 2 3 #include <iostream> 4 #include <stdexcept> 5 6 // 声明 7 //////////////////////////////////////////////////// 8 // 复数
阅读全文
posted @ 2024-12-16 21:49 芮欣婷
阅读(17)
评论(0)
推荐(0)
2024年12月9日
实验五
摘要: 任务一 publisher.hpp 1 #pragma once 2 3 #include <iostream> 4 #include <string> 5 6 using std::cout; 7 using std::endl; 8 using std::string; 9 10 // 发行/出
阅读全文
posted @ 2024-12-09 09:16 芮欣婷
阅读(6)
评论(0)
推荐(0)
2024年11月25日
实验四
摘要: 任务1: task1_1.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 displa
阅读全文
posted @ 2024-11-25 09:24 芮欣婷
阅读(7)
评论(0)
推荐(0)
2024年11月11日
实验3
摘要: 任务1 button.hpp 1 #pragma once 2 3 #include <iostream> 4 #include <string> 5 6 using std::string; 7 using std::cout; 8 9 // 按钮类 10 class Button { 11 pu
阅读全文
posted @ 2024-11-11 15:54 芮欣婷
阅读(9)
评论(0)
推荐(0)
2024年10月10日
实验1 C++
摘要: 任务1: task1.cpp 1 // 现代C++标准库、算法库体验 2 // 本例用到以下内容: 3 // 1. 字符串string, 动态数组容器类vector、迭代器 4 // 2. 算法库:反转元素次序、旋转元素 5 // 3. 函数模板、const引用作为形参 6 7 #include <
阅读全文
posted @ 2024-10-10 11:49 芮欣婷
阅读(29)
评论(0)
推荐(0)
公告