• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






施佳棋

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理

2021年12月15日

实验五 模板与多态
摘要: 1 #include<iostream> 2 #include<string> 3 #include<iomanip> 4 #include<vector> 5 #include<fstream> 6 using namespace std; 7 class Person{ 8 public: 9 阅读全文
posted @ 2021-12-15 10:22 施佳棋 阅读(28) 评论(3) 推荐(0)
 

2021年11月30日

实验四 继承
摘要: 1 #include<iostream> 2 #include<string> 3 using namespace std; 4 class Car{ 5 public: 6 Car(string maker0,string model0,int year0,int odometers0=0):ma 阅读全文
posted @ 2021-11-30 19:22 施佳棋 阅读(20) 评论(3) 推荐(0)
 

2021年11月9日

实验三 类与对象
摘要: 1 #include<iostream> 2 #include<iomanip> 3 using namespace std; 4 class vector_int{ 5 public: 6 vector_int(int n); 7 vector_int(int n,int starting); 8 阅读全文
posted @ 2021-11-09 22:58 施佳棋 阅读(52) 评论(2) 推荐(0)
 

2021年11月2日

实验二:数组、指针与C++标准库
摘要: 1 #include<iostream> 2 #include<string> 3 #include<iomanip> 4 #include<vector> 5 using namespace std; 6 class info{ 7 public: 8 info(string nickname0, 阅读全文
posted @ 2021-11-02 17:23 施佳棋 阅读(46) 评论(3) 推荐(0)
 

2021年10月25日

实验一 类与对象
摘要: 实验任务三#include<iostream>#include<math.h>using namespace std;class Complex {public: Complex(double x = 0, double y = 0) :real(x), imag(y) {}; Complex(Co 阅读全文
posted @ 2021-10-25 20:15 施佳棋 阅读(48) 评论(3) 推荐(0)