会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
闲人某某田
博客园
首页
新随笔
联系
订阅
管理
2021年12月15日
实验五 模板类与多态
摘要: Person.cpp #include <iostream> #include <fstream> #include <vector> using namespace std; class Person{ public: Person(); Person(string name0,string te
阅读全文
posted @ 2021-12-15 08:41 闲人某某田
阅读(48)
评论(1)
推荐(0)
2021年11月30日
实验四 继承
摘要: 实验二代码 #include <iostream> #include <typeinfo> // definitation of Graph class Graph { public: virtual void draw() { std::cout << "Graph::draw() : just
阅读全文
posted @ 2021-11-30 20:58 闲人某某田
阅读(29)
评论(2)
推荐(0)
2021年11月9日
实验三 类和对象Ⅱ
摘要: Vector_int.hpp #include <iostream> #include <cassert> #define N 100 using namespace std; class Vector { public: Vector(int n); // 构造函数,构造一个n*n的矩阵 Vect
阅读全文
posted @ 2021-11-09 23:36 闲人某某田
阅读(31)
评论(2)
推荐(0)
2021年11月2日
实验二
摘要: info.hpp #include<iostream> #include<string> #include<vector> using namespace std; class info{ public: info(string nickname0,string contact0,string ci
阅读全文
posted @ 2021-11-02 23:38 闲人某某田
阅读(31)
评论(2)
推荐(0)
2021年10月27日
实验1 类与对象
摘要: 实验任务三 Complex.hpp文件源码 #include <iostream> #include <string> #include <iomanip> #include <cmath> using namespace std; class Complex { public: Complex()
阅读全文
posted @ 2021-10-27 10:20 闲人某某田
阅读(31)
评论(1)
推荐(0)
公告