摘要: 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 左绪青 阅读(15) 评论(0) 推荐(0) 编辑
摘要: 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 左绪青 阅读(13) 评论(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 左绪青 阅读(13) 评论(0) 推荐(0) 编辑
摘要: 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 左绪青 阅读(12) 评论(0) 推荐(0) 编辑
摘要: 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 左绪青 阅读(16) 评论(0) 推荐(0) 编辑
摘要: 任务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 左绪青 阅读(18) 评论(0) 推荐(0) 编辑