会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
叶金萌
博客园
首页
新随笔
联系
订阅
管理
2021年12月11日
实验五 模板类与多态
摘要: 实验二: task2.cpp: #include <iostream> #include <fstream> #include <vector> #include "Person.hpp" int main() { using namespace std; vector<Person> phone_
阅读全文
posted @ 2021-12-11 15:10 叶金萌
阅读(43)
评论(3)
推荐(0)
2021年11月25日
实验4继承
摘要: 实验二: task2.cpp: #include <iostream> #include <typeinfo> class Graph{ public: void draw(){ std::cout<<"Graph::draw() : just as an interface\n"; } }; cl
阅读全文
posted @ 2021-11-25 13:21 叶金萌
阅读(27)
评论(3)
推荐(0)
2021年11月9日
实验三:类与对象二
摘要: 实验4: vector_int.hpp: #include <iostream> #include <cassert> using namespace std; class vector_int{ public: vector_int(int x,int y=1):m(x),n(y){ p=new
阅读全文
posted @ 2021-11-09 21:15 叶金萌
阅读(41)
评论(3)
推荐(0)
2021年11月1日
实验二:数组,指针与c++标准库
摘要: 实验五: Info.hpp: #include <iostream> #include <string> using namespace std; class Info{ public: Info(string a=" ",string b=" ",string c=" ",int d=0):nic
阅读全文
posted @ 2021-11-01 13:04 叶金萌
阅读(49)
评论(3)
推荐(0)
2021年10月25日
实验一:类与对象
摘要: 实验3: Complex.hpp: #ifndef Complex_hp #define Complex_hp #include <iostream> #include <cmath> using namespace std; class Complex { public: Complex() =
阅读全文
posted @ 2021-10-25 22:38 叶金萌
阅读(53)
评论(3)
推荐(0)
公告