摘要: #pragma once #include<iostream> #include<iomanip> #include<string> using namespace std; class MachinePets { public: MachinePets() {}; MachinePets(cons 阅读全文
posted @ 2022-12-04 22:15 吴一昊 阅读(16) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <fstream> #include <array> #define N 5 int main() { using namespace std; array<int, N> x {97, 98, 99, 100, 101}; ofstream 阅读全文
posted @ 2022-12-04 22:05 吴一昊 阅读(17) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-11-11 08:43 吴一昊 阅读(7) 评论(0) 推荐(0) 编辑
摘要: vectorint.hpp #pragma once #include<iostream> #include<cassert> using namespace std; class vectorInt{ public: vectorInt(int s,int num=0); vectorInt(co 阅读全文
posted @ 2022-11-08 20:16 吴一昊 阅读(8) 评论(0) 推荐(0) 编辑
摘要: #include<iostream> #include<string> using std::string; using std::cout; using std::cin; using std::endl; class Info { public: Info(string ni= "", stri 阅读全文
posted @ 2022-10-25 13:27 吴一昊 阅读(9) 评论(0) 推荐(0) 编辑
摘要: #include<iostream> #include<cmath> using namespace std; class Complex { public: Complex(double a=0,double b=0):real{a},imag{b}{}; Complex(const Comple 阅读全文
posted @ 2022-10-13 21:15 吴一昊 阅读(13) 评论(0) 推荐(0) 编辑
摘要: #include<iostream> using std::cout; using std::endl; class Point { public: Point(int x0=0, int y0=0); Point(const Point&p); ~Point()=default; int get_ 阅读全文
posted @ 2022-09-29 20:47 吴一昊 阅读(12) 评论(0) 推荐(0) 编辑