摘要: 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-03 22:20 Zhouzhou?! 阅读(19) 评论(0) 推荐(0) 编辑
摘要: pets.hpp #pragma once #include<iostream> #include<string> using namespace std; class MachinePets { public: MachinePets(){ } MachinePets(const string s 阅读全文
posted @ 2022-11-26 17:30 Zhouzhou?! 阅读(16) 评论(0) 推荐(0) 编辑
摘要: 实验任务5 vectorInt.hpp #pragma once #include<iostream> #include<cassert> using namespace std; class vectorInt{ public: vectorInt(int s,int num=0); vector 阅读全文
posted @ 2022-11-02 23:22 Zhouzhou?! 阅读(17) 评论(0) 推荐(0) 编辑
摘要: 实验任务5 #pragma once #include<iostream> #include<string> using namespace std; class Info { public: Info(string nickname1, string contact1, string city1, 阅读全文
posted @ 2022-10-20 16:29 Zhouzhou?! 阅读(19) 评论(0) 推荐(0) 编辑
摘要: 实验任务4 Complex.hpp #pragma once #include <iostream> #include <string> #include <cmath> using namespace std; class Complex{ public: Complex(): real{0}, 阅读全文
posted @ 2022-10-14 16:50 Zhouzhou?! 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 实验任务2 #include <iostream> using namespace std; class Point { public: Point(int x0 = 0, int y0 = 0); Point(const Point&p ); ~Point() = default; int get 阅读全文
posted @ 2022-09-28 20:07 Zhouzhou?! 阅读(5) 评论(0) 推荐(0) 编辑
摘要: #include<iostream> using namespace std; int main() { cout<<"hello,c++"endl; } 阅读全文
posted @ 2022-09-28 12:35 Zhouzhou?! 阅读(2) 评论(0) 推荐(0) 编辑