摘要:
task3_1: #include <iostream> #include <fstream> #include <array> #define N 5 int main() { using namespace std; array<int, N> x {97, 98, 99, 100, 101}; 阅读全文
摘要:
task4: pets.hpp #pragma once#include<iostream>using namespace std; class MachinePets { private: string nickname; public: MachinePets(const string s) { 阅读全文
摘要:
task 5: vectorInt.hpp #include<iostream> using namespace std; class vectorInt { public: vectorInt(int n); vectorInt(int n, int value); vectorInt(const 阅读全文
摘要:
task5: info.hpp #include <iostream> #include <string> #include <iomanip> using namespace std; class info{ public: info(string n, string c, string ci, 阅读全文
摘要:
task4: Complex.hpp #include<iostream> #include<math.h> using namespace std; class Complex{ public: Complex(double c31, double c32); Complex(const Comp 阅读全文
摘要:
task2: #include <iostream> using std::cout; using std::endl; // 定义Point类 class Point { public: Point(int x0 = 0, int y0 = 0); Point(const Point&p ); ~ 阅读全文