会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
qiujin
博客园
首页
新随笔
联系
订阅
管理
2021年12月15日
实验五
摘要: 实验任务2 Person.hpp #include<iostream> #include<string> using namespace std; class Person{ public: Person(){}; Person(string a,string b,string c=" "):nam
阅读全文
posted @ 2021-12-15 14:34 qiujin
阅读(13)
评论(3)
推荐(0)
2021年11月26日
实验四 继承
摘要: 实验任务2: 修改前task2.cpp: #include <iostream> #include <typeinfo> // definitation of Graph class Graph { public: void draw() { std::cout << "Graph::draw()
阅读全文
posted @ 2021-11-26 11:40 qiujin
阅读(15)
评论(2)
推荐(0)
2021年11月7日
实验三 类和对象Ⅱ
摘要: 四、实验结论 1.实验任务1-3 验证性实验。 2.实验任务4 vector_int.hpp #include<iostream> using namespace std; class Vector_int{ public: Vector_int(int n); Vector_int(int n,i
阅读全文
posted @ 2021-11-07 11:36 qiujin
阅读(17)
评论(2)
推荐(0)
2021年11月5日
实验二 数组、指针与C++标准库
摘要: 实验任务五: info.hpp #include<string> #include <iostream> using namespace std; class Info{ public: Info(string name="xxx",string contact="xxx",string city=
阅读全文
posted @ 2021-11-05 12:47 qiujin
阅读(116)
评论(2)
推荐(0)
2021年10月23日
实验一 类和对象
摘要: 实验结论 实验任务三: Comple.hpp 源码: using namespace std; #include<iostream> class Complex { public: Complex(double r = 3, double i = 0) :real(r), imag(i) {}; C
阅读全文
posted @ 2021-10-23 13:51 qiujin
阅读(37)
评论(2)
推荐(0)
公告