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






hb879655

 
 

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

2024年12月22日

c++实验6
摘要: 实验任务4 #include<iostream> #include<stdexcept> template<typename T> class Vector{ private: T* data; int num; public: Vector(int size); Vector(int size,c 阅读全文
posted @ 2024-12-22 21:25 虎啊 阅读(12) 评论(0) 推荐(0)
 

2024年12月8日

c++实验五
摘要: 实验任务3: #pragma once #include<string> using namespace std; class MachinePets { public: MachinePets(const std::string s); virtual string talk() const = 阅读全文
posted @ 2024-12-08 09:38 虎啊 阅读(12) 评论(0) 推荐(0)
 

2024年11月24日

cpp实验四
摘要: 1.实验任务1 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 22:23 虎啊 阅读(22) 评论(0) 推荐(0)
 

2024年11月10日

cpp实验3
摘要: 任务1: #pragma once #include<iostream> #include<string> using std::string; using std::cout; class Button{ public: Button(const string &text); string get 阅读全文
posted @ 2024-11-10 16:17 虎啊 阅读(10) 评论(0) 推荐(0)
 

2024年10月29日

cpp实验二
摘要: 任务一: //t.h #include"t.h" #include<iostream> #include<string> using std::cout; using std::endl; using std::string; const std::string T::doc{"a simple c 阅读全文
posted @ 2024-10-29 23:07 虎啊 阅读(22) 评论(0) 推荐(0)
 

2024年10月15日

c++实验1
摘要: 实验任务1: 1 #include <iostream> 2 #include <string> 3 #include <vector> 4 #include <algorithm> 5 using namespace std; 6 template<typename T> 7 void outpu 阅读全文
posted @ 2024-10-15 22:23 虎啊 阅读(17) 评论(0) 推荐(0)