会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
悟道树
博客园
首页
新随笔
联系
订阅
管理
2021年12月13日
实验五 模板类与多态
摘要: Person.hpp 1 #ifndef PERSON_HPP 2 #define PERSON_HPP 3 4 #include<string> 5 #include<iostream> 6 7 using namespace std; 8 9 class Person 10 { 11 publi
阅读全文
posted @ 2021-12-13 19:00 悟道树
阅读(42)
评论(3)
推荐(0)
2021年11月29日
实验四 继承
摘要: task2 改动后 1 #include <iostream> 2 #include <typeinfo> 3 4 // definitation of Graph 5 class Graph 6 { 7 public: 8 void draw() { std::cout << "Graph::dr
阅读全文
posted @ 2021-11-29 20:11 悟道树
阅读(23)
评论(3)
推荐(0)
2021年11月9日
实验三
摘要: task4.hpp 1 #pragma once 2 #ifndef VECTOR_INT_HPP 3 #define VECTOR_INT_HPP 4 #include<iostream> 5 6 class vector_int 7 { 8 private: 9 int* p; 10 int s
阅读全文
posted @ 2021-11-09 21:18 悟道树
阅读(25)
评论(3)
推荐(0)
2021年11月2日
实验二
摘要: info.hpp 1 #include<iostream> 2 #include<string> 3 using namespace std; 4 class Info{ 5 6 public: 7 Info(string name,string phone,string place,string
阅读全文
posted @ 2021-11-02 17:57 悟道树
阅读(25)
评论(3)
推荐(0)
2021年10月25日
实验一
摘要: #ifndef COMPLEX_HPP #define COMPLEX_HPP #include<iostream> #include<cmath> using namespace std; class Complex { private: double real; double imag; pub
阅读全文
posted @ 2021-10-25 20:21 悟道树
阅读(34)
评论(3)
推荐(0)
公告