会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
过路游人XYZ
博客园
首页
新随笔
联系
订阅
管理
2021年12月12日
实验五 模板类与多态
摘要: Person.hpp #ifndef PERSON_HPP #define PERSON_HPP #include<iostream> #include<string> #include<iomanip> using namespace std; class Person { public: Per
阅读全文
posted @ 2021-12-12 15:12 过路游人XYZ
阅读(45)
评论(3)
推荐(0)
2021年11月29日
实验四 继承
摘要: 任务1 期中练习1 #include<iostream> #include<map> #include<string> int main() { using namespace std; map<int,char> letter{{0,'a'},{1,'b'},{2,'c'},{3,'d'},{4,
阅读全文
posted @ 2021-11-29 22:17 过路游人XYZ
阅读(28)
评论(3)
推荐(0)
2021年11月7日
实验三 类和对象Ⅱ
摘要: vector_int.hpp #ifndef VECTOR_HPP #define VECTOR_HPP #include <iostream> #include <cassert> using namespace std; class vector_int { public: vector_int
阅读全文
posted @ 2021-11-07 23:41 过路游人XYZ
阅读(33)
评论(3)
推荐(0)
2021年10月30日
实验二 数组、指针与C++标准库
摘要: Info.hpp #ifndef INFO_HPP #define INFO_HPP #include <iostream> #include <iomanip> #include <string> using namespace std; class Info { public: Info(str
阅读全文
posted @ 2021-10-30 21:53 过路游人XYZ
阅读(40)
评论(3)
推荐(0)
2021年10月25日
实验一 类与对象
摘要: Complex.hpp #ifndef COMPLEX_HPP #define COMPLEX_HPP #include<iostream> #include<cmath> using namespace std; class Complex { public: Complex(double r=0
阅读全文
posted @ 2021-10-25 21:21 过路游人XYZ
阅读(40)
评论(4)
推荐(0)
公告