• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 众包
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
KochiyaSanae
博客园    首页    新随笔    联系   管理    订阅  订阅
2021年12月14日
实验五 模板类与多态
摘要: 实验任务2 Person.hpp #ifndef PERSON_HPP #define PERSON_HPP #include<iostream> #include<string> #include<fstream> #include<iomanip> using namespace std; cl 阅读全文
posted @ 2021-12-14 20:09 KochiyaSanae 阅读(41) 评论(3) 推荐(0)
2021年12月5日
实验四 继承
摘要: 实验任务4 pets.hpp: #ifndef PETS_HPP #define PETS_HPP using namespace std; #include<iostream> #include<string> class MachinePets { public: MachinePets() { 阅读全文
posted @ 2021-12-05 13:24 KochiyaSanae 阅读(48) 评论(2) 推荐(0)
2021年11月8日
实验三 类和对象Ⅱ
摘要: 实验任务4 vector_int.hpp #ifndef VECTOR_HPP #define VECTOR_HPP #include<iostream> #include<cassert> using namespace std; class Vector_int { public: Vector 阅读全文
posted @ 2021-11-08 23:27 KochiyaSanae 阅读(16) 评论(3) 推荐(0)
2021年10月31日
实验二 数组、指针与C++标准库
摘要: Test 5 主函数task5.cpp #include<iostream> #include<string> #include<vector> #include"info.hpp" using namespace std; const int capacity = 100;//最大容纳人数为100 阅读全文
posted @ 2021-10-31 23:09 KochiyaSanae 阅读(42) 评论(4) 推荐(0)
2021年10月22日
实验一 类与对象
摘要: Test3 头文件 #ifndef Complex_HPP #define Complex_HPP #include<iostream> class Complex { public: Complex() {} Complex(double x1) :real(x1), imag(0) {} Com 阅读全文
posted @ 2021-10-22 22:26 KochiyaSanae 阅读(29) 评论(3) 推荐(0)
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3