会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
吾王吾三
博客园
首页
新随笔
联系
订阅
管理
2021年12月11日
实验5 模板类与多态
摘要: Person.hpp #ifndef PERSON_H #define PERSON_H #include <iostream> #include <iomanip> #include <string> using std::cout; using std::cin; using std::endl
阅读全文
posted @ 2021-12-11 18:19 Ksan
阅读(18)
评论(3)
推荐(0)
2021年11月27日
实验4 继承
摘要: task2.cpp #include <iostream> #include <typeinfo> // definitation of Graph class Graph { public: void draw() { std::cout << "Graph::draw() : just as a
阅读全文
posted @ 2021-11-27 15:19 Ksan
阅读(43)
评论(3)
推荐(0)
2021年11月9日
实验3 类和对象Ⅱ
摘要: vector_int.hpp #ifndef VECTOR_INT_H #define VECTOR_INT_H #include <iostream> #include <cassert> using std::cout; using std::endl; class vector_int{ pr
阅读全文
posted @ 2021-11-09 20:01 Ksan
阅读(23)
评论(3)
推荐(0)
2021年11月2日
实验2 数组、指针与C++标准库
摘要: Info.hpp #ifndef INFO_HPP #define INFO_HPP #include <iostream> #include <string> using namespace std; class info { private: string nickname, contact,
阅读全文
posted @ 2021-11-02 16:42 Ksan
阅读(23)
评论(2)
推荐(0)
2021年10月25日
实验一 类与对象
摘要: Complex.hpp #ifndef COMPLEX_HPP #define COMPLEX_HPP #include <iostream> #include <cmath> #include <iomanip> class Complex { public: Complex(double rea
阅读全文
posted @ 2021-10-25 00:50 Ksan
阅读(39)
评论(4)
推荐(0)
公告