会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
白白的蓝天
博客园
首页
新随笔
联系
订阅
管理
2021年12月13日
实验五 模板类与多态
摘要: 实验任务二 person.hpp #include<iostream> #include<string> #include<fstream> #include<iomanip> #include<limits> using namespace std; class person { public:
阅读全文
posted @ 2021-12-13 19:15 白白的蓝天
阅读(45)
评论(3)
推荐(0)
2021年11月29日
实验四 继承
摘要: task2.cpp #include <iostream> #include <typeinfo> // definitation of Graph class Graph { public: virtual void draw() { std::cout << "Graph::draw() : j
阅读全文
posted @ 2021-11-29 17:59 白白的蓝天
阅读(48)
评论(3)
推荐(0)
2021年11月8日
实验三 类与对象Ⅱ
摘要: vector_int.hpp: #include<iostream> using namespace std; class vector_int { public: vector_int(int n); vector_int(int n,int m); vector_int(const vector
阅读全文
posted @ 2021-11-08 21:07 白白的蓝天
阅读(23)
评论(3)
推荐(0)
2021年10月31日
实验二 数组、指针与C++数据库
摘要: #include<iostream> #include<string> using namespace std; class info { private: string nick; string con; string city; int n; public: info(string nick,s
阅读全文
posted @ 2021-10-31 16:12 白白的蓝天
阅读(57)
评论(3)
推荐(0)
2021年10月25日
实验一 类与对象
摘要: #include<iostream> #include<cmath> using namespace std; class Complex { public: Complex(int r=0,int i=0):real((double)r),imag((double)i){} Complex(dou
阅读全文
posted @ 2021-10-25 22:29 白白的蓝天
阅读(50)
评论(3)
推荐(0)
公告