• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






syxlyw

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理

2024年12月17日

实验六
摘要: 1 #ifndef VECTOR_HPP 2 #define VECTOR_HPP 3 4 #include <iostream> 5 #include <stdexcept> // 用于异常处理 6 7 using namespace std; 8 9 template <typename T> 阅读全文
posted @ 2024-12-17 17:02 klobe 阅读(13) 评论(0) 推荐(0)
 

2024年12月9日

实验五
摘要: 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 // 发行/出版物类:Publisher (抽象类 阅读全文
posted @ 2024-12-09 11:02 klobe 阅读(5) 评论(0) 推荐(0)
 

2024年11月25日

实验四
摘要: 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; 11 12 p 阅读全文
posted @ 2024-11-25 12:42 klobe 阅读(9) 评论(0) 推荐(0)
 

2024年11月11日

实验三
摘要: 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 Button 阅读全文
posted @ 2024-11-11 13:59 klobe 阅读(6) 评论(0) 推荐(0)
 

2024年11月4日

实验2
摘要: 1 #pragma once 2 3 #include <string> 4 5 // 类T: 声明 6 class T { 7 // 对象属性、方法 8 public: 9 T(int x = 0, int y = 0); // 普通构造函数 10 T(const T &t); // 复制构造函数 阅读全文
posted @ 2024-11-04 14:12 klobe 阅读(8) 评论(0) 推荐(0)
 

2024年10月10日

实验1 C++
摘要: 任务1: task.cpp: 1 #include <iostream> 2 #include <string> 3 #include <vector> 4 #include <algorithm> 5 6 using namespace std; 7 8 // 声明 9 // 模板函数声明 10 阅读全文
posted @ 2024-10-10 12:34 klobe 阅读(28) 评论(0) 推荐(0)