会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
nuist0177
博客园
首页
新随笔
联系
订阅
管理
2024年12月17日
实验6 模板类、文件I/O和异常处理
摘要: 4. 实验任务4 Vector.hpp 1 #pragma once 2 #include<string> 3 #include<iostream> 4 5 6 using namespace std; 7 8 template<typename T> 9 class Vector { 10 pub
阅读全文
posted @ 2024-12-17 16:54 Mikuuuu
阅读(27)
评论(0)
推荐(0)
2024年12月4日
实验5 继承和多态
摘要: 1. 实验任务1 publisher.hpp 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 //Pu
阅读全文
posted @ 2024-12-04 21:47 Mikuuuu
阅读(18)
评论(0)
推荐(0)
2024年11月21日
实验4 类的组合、继承、模板类、标准库
摘要: 1. 实验任务1 task1_1.cpp 1 #include <iostream> 2 using namespace std; 3 4 class A { 5 public: 6 A(int x0, int y0); 7 void display()const; 8 private: 9 int
阅读全文
posted @ 2024-11-21 22:57 Mikuuuu
阅读(28)
评论(0)
推荐(0)
2024年11月5日
实验3 类和对象_基础编程2
摘要: 1. 实验任务1 button.hpp 1 #pragma once 2 #include <iostream> 3 #include <string> 4 using std::string; 5 using std::cout; 6 // 按钮类 7 class Button { 8 publi
阅读全文
posted @ 2024-11-05 16:43 Mikuuuu
阅读(30)
评论(1)
推荐(1)
2024年10月24日
实验2 类和对象_基础编程1
摘要: 1. 实验任务1 分别给出t.h, t.cpp, task1.cpp源码,以及,运行测试结果截图 t.h 1 //t.h内容为类T的申明,友元函数的声明 2 3 #pragma once 4 5 #include <string> 6 7 class T { 8 9 public: 10 T(int
阅读全文
posted @ 2024-10-24 19:40 Mikuuuu
阅读(20)
评论(0)
推荐(0)
2024年10月12日
实验1 现代C++编程初体验
摘要: 实验1 现代C++编程初体验 task1: 1 // 现代C++标准库、算法库体验 2 // 本例用到以下内容: 3 // 1. 字符串string, 动态数组容器类vector、迭代器 4 // 2. 算法库:反转元素次序、旋转元素 5 // 3. 函数模板、const引用作为形参 6 #incl
阅读全文
posted @ 2024-10-12 17:56 Mikuuuu
阅读(16)
评论(0)
推荐(0)
公告