会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
lbldmx
博客园
首页
新随笔
联系
订阅
管理
2024年12月17日
实验6 模板类、文件I/O和异常处理
摘要: 1.实验任务4 Vector.hpp 1 #pragma once 2 #include <iostream> 3 #include <stdexcept> 4 5 using namespace std; 6 7 template<typename T> 8 class Vector { 9 pu
阅读全文
posted @ 2024-12-17 18:48 lbldmx
阅读(19)
评论(0)
推荐(0)
2024年12月2日
实验五 继承和多态
摘要: 1.实验任务三 pets.hpp 1 #pragma once 2 #include<iostream> 3 #include<string> 4 using namespace std; 5 6 class MachinePets{ 7 public: 8 MachinePets(const st
阅读全文
posted @ 2024-12-02 20:51 lbldmx
阅读(35)
评论(0)
推荐(0)
2024年11月23日
实验4 类的组合、继承、模板类、标准库
摘要: 1、实验任务2 GradeCalc.hpp 1 #include<iostream> 2 #include<vector> 3 #include<string> 4 #include<algorithm> 5 #include<numeric> 6 #include<iomanip> 7 8 usi
阅读全文
posted @ 2024-11-23 10:24 lbldmx
阅读(25)
评论(0)
推荐(0)
2024年11月6日
实验3 类和对象_基础编程2
摘要: 1.实验任务1 button.hpp 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 pu
阅读全文
posted @ 2024-11-06 13:58 lbldmx
阅读(26)
评论(0)
推荐(0)
2024年10月24日
实验2 类和对象_基础编程1
摘要: 1.实验任务1 t.h 1 #pragma once 2 3 #include<string> 4 5 // 类T: 声明 6 class T{ 7 public: 8 T(int x=0,int y=0); // 普通构造函数 9 T(const T &t); // 复制构造函数 10 T(T &
阅读全文
posted @ 2024-10-24 14:22 lbldmx
阅读(25)
评论(0)
推荐(0)
2024年10月9日
实验一 现代C++基础编程
摘要: 1.实验任务1 task1.cpp 1 //现代C++标准库、算法库体验 2 //本例用到以下内容: 3 //1.字符串string,动态数组容器类vector、迭代器 4 //3.函数模板、const引用作为形参 5 6 #include<iostream> 7 #include<string>
阅读全文
posted @ 2024-10-09 21:54 lbldmx
阅读(28)
评论(0)
推荐(0)
公告