会员
周边
新闻
博问
AI培训
云市场
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
Yukito0209
博客园
首页
新随笔
联系
订阅
管理
2021年12月11日
实验5 模板类与多态
摘要: 实验任务2 "Person.hpp" 1 #ifndef _PERSON 2 #define _PERSON 3 4 #include <iostream> 5 #include <string> 6 #include <iomanip> 7 using namespace std; 8 9 cla
阅读全文
posted @ 2021-12-11 22:12 Yukito0209
阅读(16)
评论(2)
推荐(0)
编辑
2021年11月24日
实验4 继承
摘要: 实验任务3 "battery.hpp" 1 #ifndef TEST01_BATTERY_HPP 2 #define TEST01_BATTERY_HPP 3 4 #include <iostream> 5 using namespace std; 6 7 class Battery { 8 pub
阅读全文
posted @ 2021-11-24 19:51 Yukito0209
阅读(8)
评论(3)
推荐(0)
编辑
2021年11月6日
实验3 类和对象II
摘要: 实验任务4 "vector_int.hpp" 1 #include <iostream> 2 #include <cassert> 3 using namespace std; 4 5 class Vector_int { 6 public: 7 Vector_int(int n); 8 Vecto
阅读全文
posted @ 2021-11-06 13:34 Yukito0209
阅读(23)
评论(3)
推荐(0)
编辑
2021年10月30日
实验2 数组、指针与C++标准库
摘要: 实验任务5 "info.hpp" #include <iostream> #include <string> using namespace std; class Info { public: Info (string nina, string con, string ci, int num = 0
阅读全文
posted @ 2021-10-30 10:33 Yukito0209
阅读(10)
评论(3)
推荐(1)
编辑
2021年10月24日
实验1 类与对象
摘要: 实验任务3 "Complex.hpp": #include<iostream> #include<cmath> using namespace std; class Complex { public: Complex (double a = 0.0,double b = 0.0): real{a},
阅读全文
posted @ 2021-10-24 17:52 Yukito0209
阅读(29)
评论(3)
推荐(0)
编辑