摘要: 实验任务3 #include<iostream> #include<fstream> #include<array> #define N 5 int main(){ using namespace std; array<int,N> x{97,98,99,100,101}; ofstream out 阅读全文
posted @ 2022-12-05 13:07 DarkFIameMaster 阅读(34) 评论(0) 推荐(0)
摘要: 实验任务4 pets.hpp: #pragma once #include<iostream> #include<string> using namespace std; class MachinePets{ public: string nickname; MachinePets(const st 阅读全文
posted @ 2022-11-29 22:12 DarkFIameMaster 阅读(23) 评论(0) 推荐(0)
摘要: 实验任务5 #pragma once #include<iostream> #include<iomanip> using namespace std; class Info { private: string nickname, contact, city; int n; public: Info 阅读全文
posted @ 2022-10-23 22:51 DarkFIameMaster 阅读(22) 评论(0) 推荐(0)
摘要: 实验四 Complex.hpp #pragma once #include<iostream> #include<cmath> using namespace std; class Complex { public: Complex(){ }; Complex(double a){ real = a 阅读全文
posted @ 2022-10-14 18:03 DarkFIameMaster 阅读(24) 评论(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 g 阅读全文
posted @ 2022-09-28 20:40 DarkFIameMaster 阅读(26) 评论(0) 推荐(0)