摘要: 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}; 阅读全文
posted @ 2022-12-06 19:54 miantiaooooo 阅读(21) 评论(0) 推荐(0) 编辑
摘要: task4: pets.hpp #pragma once#include<iostream>using namespace std; class MachinePets { private: string nickname; public: MachinePets(const string s) { 阅读全文
posted @ 2022-11-27 19:30 miantiaooooo 阅读(19) 评论(0) 推荐(0) 编辑
摘要: task 5: vectorInt.hpp #include<iostream> using namespace std; class vectorInt { public: vectorInt(int n); vectorInt(int n, int value); vectorInt(const 阅读全文
posted @ 2022-11-05 21:39 miantiaooooo 阅读(8) 评论(0) 推荐(0) 编辑
摘要: task5: info.hpp #include <iostream> #include <string> #include <iomanip> using namespace std; class info{ public: info(string n, string c, string ci, 阅读全文
posted @ 2022-10-23 22:30 miantiaooooo 阅读(3) 评论(0) 推荐(0) 编辑
摘要: task4: Complex.hpp #include<iostream> #include<math.h> using namespace std; class Complex{ public: Complex(double c31, double c32); Complex(const Comp 阅读全文
posted @ 2022-10-18 01:41 miantiaooooo 阅读(17) 评论(0) 推荐(0) 编辑
摘要: task2: #include <iostream> using std::cout; using std::endl; // 定义Point类 class Point { public: Point(int x0 = 0, int y0 = 0); Point(const Point&p ); ~ 阅读全文
posted @ 2022-10-04 20:03 miantiaooooo 阅读(3) 评论(0) 推荐(0) 编辑