摘要:
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 阅读全文
摘要:
task4:pet.hpp #pragma once #include<iostream> using namespace std; class MachinePets{ public: MachinePets(const string s){ nickname=s; } virtual strin 阅读全文
摘要:
实验任务5: vectorInt.hpp #pragma once #include<bits/stdc++.h> using namespace std; class vectorInt{ public: vectorInt(int n); vectorInt(int n,int v); vect 阅读全文
摘要:
Info.hpp #include <iostream> #include <vector> #include <string> #include <iomanip> using namespace std; class ReserveInfo { private: string nick_name 阅读全文
摘要:
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} 阅读全文
摘要:
任务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 阅读全文