摘要: task3_1.cpp #include<iostream> #include<fstream> #include<array> #define N 5 int main(){ using namespace std; array<int,N> x{97,98,99,100,101}; ofstre 阅读全文
posted @ 2022-12-06 23:34 丁鑫铖 阅读(14) 评论(0) 推荐(0) 编辑
摘要: pets.hpp源码 #include <iostream> #include<string.h> using namespace std; class MachinePets { private: string nickname; public: MachinePets(const string 阅读全文
posted @ 2022-11-28 19:05 丁鑫铖 阅读(19) 评论(0) 推荐(0) 编辑
摘要: 实验任务5 vectorlnt.hpp #pragma once #include<iostream> #include<cassert> using std::cout; class vectorInt { public: vectorInt(int n); vectorInt(int n, in 阅读全文
posted @ 2022-11-07 09:39 丁鑫铖 阅读(18) 评论(0) 推荐(0) 编辑
摘要: 实验任务5 Info.hpp文件源码 #include <iostream> #include <string> #include <iomanip> using namespace std; class Info{ public: Info(string name,string con,strin 阅读全文
posted @ 2022-10-23 20:08 丁鑫铖 阅读(17) 评论(0) 推荐(0) 编辑
摘要: 实验2.4 程序源码 Complex.hpp 源代码 #pragma once #include <iostream> #include <cmath> using namespace std; class Complex{ public: Complex(double a=0,double b=0 阅读全文
posted @ 2022-10-17 10:27 丁鑫铖 阅读(20) 评论(0) 推荐(0) 编辑
摘要: 实验任务二 1.源码 #include <iostream> using std::cout; using std::endl; class Point { public: Point(int x0 = 0, int y0 = 0); Point(const Point&p ); ~Point() 阅读全文
posted @ 2022-09-29 07:26 丁鑫铖 阅读(20) 评论(0) 推荐(0) 编辑