会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
mao08
博客园
首页
新随笔
联系
订阅
管理
2024年12月16日
实验6
摘要: task4 1 #pragma once 2 3 #include<iostream> 4 #include<stdexcept> 5 6 using namespace std; 7 template<typename T> 8 class Vector { 9 public: 10 Vector
阅读全文
posted @ 2024-12-16 15:59 _mao
阅读(23)
评论(0)
推荐(0)
2024年12月2日
实验5
摘要: task3: 1 #pragma 2 3 #include<iostream> 4 #include<string> 5 6 using namespace std; 7 8 class MachinePets{ 9 public: 10 MachinePets(const string &s=""
阅读全文
posted @ 2024-12-02 22:36 _mao
阅读(19)
评论(0)
推荐(0)
2024年11月23日
实验4
摘要: task2 1 #include <iostream> 2 #include <vector> 3 #include <string> 4 #include <algorithm> 5 #include <numeric> 6 #include <iomanip> 7 8 using std::ve
阅读全文
posted @ 2024-11-23 22:59 _mao
阅读(26)
评论(0)
推荐(0)
2024年11月8日
实验3
摘要: task1 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-08 17:13 _mao
阅读(20)
评论(0)
推荐(0)
2024年10月23日
实验2
摘要: task1 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-10-23 20:06 _mao
阅读(31)
评论(0)
推荐(1)
2024年10月9日
实验1 现代C++基础编程
摘要: 任务1: 源代码task1.cpp 1 #include <iostream> 2 #include <string> 3 #include <vector> 4 #include <algorithm> 5 6 using namespace std; 7 8 // 声明 9 // 模板函数声明
阅读全文
posted @ 2024-10-09 21:39 _mao
阅读(40)
评论(0)
推荐(1)
公告