会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
歧念
博客园
首页
新随笔
联系
订阅
管理
2021年12月
实验五 模板类与多态
摘要: person.hpp #ifndef PERSON_HPP #define PERSON_HPP #include <iostream> #include<string> #include<iomanip> using namespace std; class Person { public: Pe
阅读全文
posted @ 2021-12-11 13:09 歧念
阅读(38)
评论(3)
推荐(0)
2021年11月
实验四 继承
摘要: 没加virtual之前: task1.cpp #include<iostream> #include<typeinfo> //definition of Graph class Graph { public: void draw() { std::cout << "Graph::draw() : j
阅读全文
posted @ 2021-11-27 20:59 歧念
阅读(34)
评论(2)
推荐(0)
实验3 类和对象II
摘要: vector_int.hpp #ifndef VECTOR_INT_HPP #define VECTOR_INT_HPP #include<iostream> using namespace std; class vector_int { public: vector_int(int n); vec
阅读全文
posted @ 2021-11-05 22:09 歧念
阅读(23)
评论(3)
推荐(0)
2021年10月
实验2 数组、指针与c++标准库
摘要: info.hpp #ifndef INFO_HPP #define INFO_HPP #include<iostream> #include<string> #include<vector> using namespace std; class info { public: info(string
阅读全文
posted @ 2021-10-30 15:40 歧念
阅读(44)
评论(3)
推荐(0)
实验一 类与对象
摘要: complex.hpp #ifndef COMPLEX_HPP #define COMPLEX_HPP #include<iostream> #include<cmath> using namespace std; class Complex { public: Complex():real(0),
阅读全文
posted @ 2021-10-24 11:52 歧念
阅读(43)
评论(3)
推荐(0)
公告