会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
markpakka
博客园
首页
新随笔
联系
订阅
管理
2021年12月13日
实验五 模板类与多态
摘要: #include<iostream> using namespace std; class Complex { private: double real,image; public: Complex(double real0=0,double image0=0):real{real0},image{
阅读全文
posted @ 2021-12-13 20:25 markpakka
阅读(59)
评论(3)
推荐(0)
2021年11月28日
实验四 继承
摘要: 实验二源码: #include <iostream> #include <typeinfo> // definitation of Graph class Graph { public: void draw() { std::cout << "Graph::draw() : just as an i
阅读全文
posted @ 2021-11-28 22:05 markpakka
阅读(50)
评论(3)
推荐(0)
2021年11月10日
实验三 类和对象Ⅱ
摘要: vector_int.hpp源码: #ifndef VECTOR_INT_HPP #define VECTOR_INT_HPP #include<iostream> #include<cassert> using namespace std; class Vector_int { private:
阅读全文
posted @ 2021-11-10 00:28 markpakka
阅读(31)
评论(3)
推荐(0)
2021年11月1日
实验二 数组、指针与C++标准库
摘要: 实验任务5: Info.hpp文件源码: #ifndef INFO_HPP #define INFO_HPP #include<iostream> #include<string> using namespace std; class Info { private: string nickname;
阅读全文
posted @ 2021-11-01 00:24 markpakka
阅读(53)
评论(3)
推荐(0)
2021年10月26日
实验一 类与对象
摘要: 任务3:复数类complex .hpp文件源码 #ifndef COMPLEX_HPP #define COMPLEX_HPP #include<iostream> #include<math.h> using namespace std; class Complex { private: doub
阅读全文
posted @ 2021-10-26 22:44 markpakka
阅读(21)
评论(3)
推荐(0)
公告