摘要: 实验6.3 task3.1 1 #include <iostream> 2 #include <fstream> 3 #include <array> 4 #define N 5 5 6 int main() { 7 using namespace std; 8 9 array<int, N> x 阅读全文
posted @ 2022-12-03 11:23 ~GZJ 阅读(16) 评论(0) 推荐(0) 编辑
摘要: 实验5.4 pets.hpp 1 #pragma once 2 #include <iostream> 3 #include <string> 4 using namespace std; 5 class MachinePets{ 6 public: 7 MachinePets(const stri 阅读全文
posted @ 2022-11-28 13:03 ~GZJ 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 实验4.5: vectorInt.hpp 1 #include <iostream> 2 using namespace std; 3 class vectorInt{ 4 public: 5 vectorInt(int n); 6 vectorInt(int n,int value); 7 vec 阅读全文
posted @ 2022-11-05 18:02 ~GZJ 阅读(9) 评论(0) 推荐(0) 编辑
摘要: 实验3.5 Info.hpp 1 #include <iostream> 2 #include <string> 3 #include <iomanip> 4 using namespace std; 5 class Info{ 6 public: 7 Info(string name,string 阅读全文
posted @ 2022-10-22 22:26 ~GZJ 阅读(6) 评论(0) 推荐(0) 编辑
摘要: 实验2.4 hpp: 1 #pragma once 2 #include <iostream> 3 #include <cmath> 4 using namespace std; 5 class Complex{ 6 public: 7 Complex(double a=0,double b=0): 阅读全文
posted @ 2022-10-16 14:30 ~GZJ 阅读(18) 评论(0) 推荐(0) 编辑
摘要: 实验1.2 1 #include <iostream> 2 using std::cout; 3 using std::endl; 4 class Point{ 5 public: 6 Point(int x0=0,int y0=0); 7 Point(const Point& p); 8 ~Poi 阅读全文
posted @ 2022-09-30 11:52 ~GZJ 阅读(71) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <string> #include <vector> int main() { using namespace std; string s1; string s2{"c plus plus"}; string s3{s2}; string s 阅读全文
posted @ 2022-09-28 16:44 ~GZJ 阅读(10) 评论(0) 推荐(0) 编辑