会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
2021zxq
博客园
首页
新随笔
联系
订阅
管理
2022年12月
实验六
摘要: task3_1.cpp #include <iostream> #include <fstream> #include <array> #define N 5 int main() { using namespace std; array<int, N> x {97, 98, 99, 100, 10
阅读全文
posted @ 2022-12-07 12:05 左绪青
阅读(20)
评论(0)
推荐(0)
2022年11月
实验5
摘要: task4:pet.hpp #pragma once #include<iostream> using namespace std; class MachinePets{ public: MachinePets(const string s){ nickname=s; } virtual strin
阅读全文
posted @ 2022-11-30 11:54 左绪青
阅读(19)
评论(0)
推荐(0)
实验四
摘要: 实验任务5: vectorInt.hpp #pragma once #include<bits/stdc++.h> using namespace std; class vectorInt{ public: vectorInt(int n); vectorInt(int n,int v); vect
阅读全文
posted @ 2022-11-09 08:21 左绪青
阅读(20)
评论(0)
推荐(0)
2022年10月
实验3
摘要: Info.hpp #include <iostream> #include <vector> #include <string> #include <iomanip> using namespace std; class ReserveInfo { private: string nick_name
阅读全文
posted @ 2022-10-25 20:22 左绪青
阅读(19)
评论(0)
推荐(0)
实验2 类和对象
摘要: task 4. Complex.hpp #include<iostream> #include<cmath> using namespace std; class Complex { public: Complex(double a = 0,double b = 0):real{a},imag{b}
阅读全文
posted @ 2022-10-18 17:36 左绪青
阅读(22)
评论(0)
推荐(0)
实验1
摘要: 任务5#include<iostream> #include<iomanip> class Rectangle { public: Rectangle(float l=2.0,float w=1.0):length{l},width{w}{} Rectangle(const Rectangle& o
阅读全文
posted @ 2022-10-05 12:31 左绪青
阅读(25)
评论(0)
推荐(0)
公告