会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
KingLRom
博客园
首页
新随笔
联系
订阅
管理
2021年12月11日
实验五
摘要: Task2: person.hpp: #include <iostream> #include <string> #include <iomanip> using namespace std; class Person { public: Person() = default; Person(str
阅读全文
posted @ 2021-12-11 21:11 KingLRom
阅读(42)
评论(3)
推荐(0)
2021年11月24日
实验四 继承
摘要: task2: Code: #include <iostream> #include <typeinfo> // definitation of Graph class Graph { public: virtual void draw() { std::cout << "Graph::draw()
阅读全文
posted @ 2021-11-24 21:46 KingLRom
阅读(41)
评论(3)
推荐(0)
2021年11月5日
实验3 类和对象Ⅱ
摘要: task4: vector_int.hpp源码: #include <iostream> #include <cassert> using namespace std; class Vector_int { public: Vector_int(int _size) :size(_size) { c
阅读全文
posted @ 2021-11-05 14:41 KingLRom
阅读(47)
评论(3)
推荐(0)
2021年10月27日
实验二 数组、指针与c++标准库
摘要: task5: info.hpp源码: #ifndef Info_Hpp #define Info_Hpp #include <iostream> #include <string> #include <iomanip> using namespace std; class info { public
阅读全文
posted @ 2021-10-27 23:58 KingLRom
阅读(60)
评论(3)
推荐(1)
2021年10月20日
实验一 类与对象
摘要: task3: Complex.hpp源码: #ifndef Complex_hpp #define Complex_hpp #include <iostream> #include <cmath> using namespace std; class Complex { public: Comple
阅读全文
posted @ 2021-10-20 22:57 KingLRom
阅读(76)
评论(5)
推荐(1)
公告