会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
qc050306
博客园
首页
新随笔
联系
订阅
管理
2024年12月17日
实验六
摘要: 实验任务四: 1 #pragma once 2 #include<iostream> 3 #include<stdexcept> 4 5 using namespace std; 6 7 template<typename T> 8 9 class Vector { 10 private: 11 i
阅读全文
posted @ 2024-12-17 19:39 qc798w3
阅读(19)
评论(0)
推荐(0)
2024年12月3日
实验五
摘要: task 3; 1 hpp 2 #pragma once 3 #include<iostream> 4 #include<string> 5 using namespace std; 6 class MachinePets{ 7 public: 8 MachinePets(const string
阅读全文
posted @ 2024-12-03 14:24 qc798w3
阅读(21)
评论(0)
推荐(0)
2024年11月23日
实验4 类的组合继承模板类标准库
摘要: 实验任务二 gradecalc.hpp 1 #include <iostream> 2 #include <vector> 3 #include <string> 4 #include <algorithm> 5 #include <numeric> 6 #include <iomanip> 7 8
阅读全文
posted @ 2024-11-23 13:46 qc798w3
阅读(11)
评论(0)
推荐(0)
2024年11月4日
实验三 类和对象 基础编程2
摘要: 实验任务1 1,自定义了两个类分别是window类和button类 使用了标准库中的iostream vector string 2,不适合 3定义了一个字符串长度为40 实验任务2 1 #include <iostream> 2 #include <vector> 3 4 using namesp
阅读全文
posted @ 2024-11-04 20:59 qc798w3
阅读(21)
评论(0)
推荐(0)
2024年10月23日
实验2 类和对象 基础编程1
摘要: 1,实验任务1 t.cpp 1 // 类T: 实现 2 // 普通函数实现 3 4 #include "t.h" 5 #include <iostream> 6 #include <string> 7 8 using std::cout; 9 using std::endl; 10 using st
阅读全文
posted @ 2024-10-23 15:11 qc798w3
阅读(32)
评论(0)
推荐(0)
2024年10月9日
现代C++编程初体验
摘要: 实验任务1: task1.cpp 1 #include <iostream> 2 #include <string> 3 #include <vector> 4 #include <algorithm> 5 6 using namespace std; 7 8 // 声明 9 // 模板函数声明 1
阅读全文
posted @ 2024-10-09 23:05 qc798w3
阅读(24)
评论(0)
推荐(0)
公告