会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
HJ5623
博客园
首页
新随笔
联系
订阅
管理
2021年12月14日
实验五 模板类和多态
摘要: task2 person.hpp #ifndef PERSON_H #define PERSON_H #include<iostream> using namespace std; class Person { public: Person(){} Person(string a,string b,
阅读全文
posted @ 2021-12-14 13:15 HJ5623
阅读(46)
评论(2)
推荐(0)
2021年11月28日
实验四 继承
摘要: 实验任务2 实验源码 #include <iostream> #include <typeinfo> // definitation of Graph class Graph { public: void draw() { std::cout << "Graph::draw() : just as
阅读全文
posted @ 2021-11-28 21:25 HJ5623
阅读(49)
评论(2)
推荐(0)
2021年11月7日
实验三 类和对象2
摘要: 实验任务4 vector_int.h #ifndef VECTOR_H #define VECTOR_H #include<iostream> #include<cassert> using namespace std; class Vector_int { public: Vector_int(i
阅读全文
posted @ 2021-11-07 15:24 HJ5623
阅读(26)
评论(3)
推荐(0)
2021年10月30日
实验二 数组,指针与c++标准库
摘要: 实验任务5 info.h #ifndef INFO_H #define INFO_H #include<iostream> #include<vector> #include<array> using namespace std; class info { public: info(string a
阅读全文
posted @ 2021-10-30 22:30 HJ5623
阅读(52)
评论(3)
推荐(0)
2021年10月22日
实验1 类与对象
摘要: 实验结论: 实验任务3: Complex.h源码 #ifndef COMPLEX_HPP #define COMPLEX_HPP #include<cmath> #include<iostream> using namespace std; class Complex { public: Compl
阅读全文
posted @ 2021-10-22 23:24 HJ5623
阅读(59)
评论(4)
推荐(0)
公告