会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
ywq121
博客园
首页
新随笔
联系
订阅
管理
2024年12月19日
实验6
摘要: 实验一代码: 1 #pragma once 2 3 #include <iostream> 4 #include <stdexcept> 5 6 // 声明 7 //////////////////////////////////////////////////// 8 // 复数模板类声明 9 t
阅读全文
posted @ 2024-12-19 21:06 严文奇
阅读(12)
评论(0)
推荐(0)
2024年12月7日
实验五
摘要: 实验一代码: 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 // 发行/出版物类:Publish
阅读全文
posted @ 2024-12-07 22:08 严文奇
阅读(17)
评论(0)
推荐(0)
2024年11月24日
实验四
摘要: 实验一代码: 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() const;
阅读全文
posted @ 2024-11-24 13:28 严文奇
阅读(14)
评论(0)
推荐(0)
2024年11月9日
实验三
摘要: 实验1代码: 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 public: 12
阅读全文
posted @ 2024-11-09 19:09 严文奇
阅读(41)
评论(0)
推荐(0)
2024年10月24日
实验二
摘要: 实验一代码: 1 #include "t.h" 2 #include <iostream> 3 4 using std::cout; 5 using std::endl; 6 7 void test(); 8 9 int main() { 10 test(); 11 cout << "\nmain:
阅读全文
posted @ 2024-10-24 20:44 严文奇
阅读(28)
评论(0)
推荐(0)
2024年10月15日
实验一
摘要: 任务1 代码: 1 // 现代C++标准库、算法库体验 2 // 本例用到以下内容: 3 // 1. 字符串string, 动态数组容器类vector、迭代器 4 // 2. 算法库:反转元素次序、旋转元素 5 // 3. 函数模板、const引用作为形参 6 7 #include <iostrea
阅读全文
posted @ 2024-10-15 19:33 严文奇
阅读(38)
评论(0)
推荐(0)
公告