会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
fngwj
博客园
首页
新随笔
联系
订阅
管理
2024年12月22日
实验6 模板类、文件I/O和异常处理
摘要: task4 Vector.hpp 1 #pragma once 2 3 #include <iostream> 4 #include <stdexcept> 5 6 using std::cout; 7 template <typename T> 8 9 class Vector { 10 publ
阅读全文
posted @ 2024-12-22 11:03 F&WJ
阅读(5)
评论(0)
推荐(0)
2024年12月7日
实验5 继承和多态
摘要: 任务三: pets.hpp 1 #include <iostream> 2 #include <string> 3 4 using std::string; 5 using std::cout; 6 using std::endl; 7 8 class MachinePets { 9 public:
阅读全文
posted @ 2024-12-07 14:03 F&WJ
阅读(15)
评论(0)
推荐(0)
2024年11月24日
实验4 类的组合、继承、模板类、标准库
摘要: 任务二: GradeCalc.hpp 1 #include <iostream> 2 #include <vector> 3 #include <string> 4 #include <algorithm> 5 #include <numeric> //数值计算函数 6 #include <ioma
阅读全文
posted @ 2024-11-24 10:33 F&WJ
阅读(29)
评论(0)
推荐(0)
2024年11月10日
实验3 类和对象_基础编程2
摘要: 任务一: 源代码: 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
阅读全文
posted @ 2024-11-10 17:16 F&WJ
阅读(23)
评论(0)
推荐(0)
2024年10月29日
实验2 类和对象_基础编程1
摘要: 任务1: 源代码: t.h 1 #pragma once 2 3 #include <string> 4 5 class T{ 6 public: 7 T(int x=0,int y=0); 8 T(const T &t); 9 T(T &&t); 10 ~T(); 11 12 void adjus
阅读全文
posted @ 2024-10-29 16:54 F&WJ
阅读(33)
评论(0)
推荐(0)
2024年10月14日
实验1 现代C++编程初体验
摘要: 任务1: 源代码task1.cpp 1 #include<iostream> 2 #include<string> 3 #include<vector> 4 #include<algorithm> 5 6 using namespace std; 7 8 template<typename T> 9
阅读全文
posted @ 2024-10-14 20:19 F&WJ
阅读(33)
评论(0)
推荐(0)
公告