会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
zhzhang-hong
博客园
首页
新随笔
联系
订阅
管理
2021年12月11日
实验五
摘要: Person.hpp #pragma once #include<bits/stdc++.h> using namespace std; class person{ private: string name; string telephone; string email; public: perso
阅读全文
posted @ 2021-12-11 14:35 zhzhang-hong
阅读(49)
评论(1)
推荐(0)
2021年11月24日
实验4 继承
摘要: electricCar.hpp #include<string> using namespace std; class Battery{ public: Battery(int cap=70); ~Battery(); int get_capacity(); private: int capacit
阅读全文
posted @ 2021-11-24 23:31 zhzhang-hong
阅读(13)
评论(1)
推荐(0)
2021年11月5日
实验3 类和对象Ⅱ
摘要: Vector_int.hpp #include<string> using namespace std; class Vector_int{ public: Vector_int(int n); Vector_int(int n,int val); ~Vector_int(); int &at(in
阅读全文
posted @ 2021-11-05 15:59 zhzhang-hong
阅读(56)
评论(1)
推荐(0)
2021年10月28日
实验二 数组、指针与c++标准库
摘要: TextCoder.hpp #include<string> using namespace std; class TextCoder{ public: TextCoder(); TextCoder(string text); ~TextCoder(); string encoder(); stri
阅读全文
posted @ 2021-10-28 00:37 zhzhang-hong
阅读(68)
评论(2)
推荐(2)
2021年10月20日
实验一
摘要: complex.h #include "complex.h" #include <iostream> int main() { using namespace std; complex c1(3, -4); const complex c2(4.5); complex c3(c1); cout <<
阅读全文
posted @ 2021-10-20 23:53 zhzhang-hong
阅读(36)
评论(3)
推荐(0)
公告