摘要: 实验内容3 task3_1.cpp #include <iostream> #include <fstream> #include <array> #define N 5 int main() { using namespace std; array<int, N> x ={97, 98, 99, 阅读全文
posted @ 2022-11-30 22:02 akumanpower 阅读(27) 评论(0) 推荐(0) 编辑
摘要: 实验内容四 pets.hpp #include <iostream> using namespace std; // abstract class class MachinePets{ public: MachinePets(const string s){ nickname=s; } virtua 阅读全文
posted @ 2022-11-24 18:55 akumanpower 阅读(14) 评论(0) 推荐(0) 编辑
摘要: 实验任务五 vectorint.hpp #include<iostream> using namespace std; class vectorint { public: vectorint(int n) { length = n; arr = new int[n]; cout << "constr 阅读全文
posted @ 2022-11-02 21:17 akumanpower 阅读(24) 评论(0) 推荐(0) 编辑
摘要: 任务5 实验代码 Info.hpp #pragma once #include<iostream> #include<iomanip> using namespace std; class Info { private: string nickname, contact, city; int n; 阅读全文
posted @ 2022-10-19 20:26 akumanpower 阅读(24) 评论(0) 推荐(0) 编辑
摘要: task.4 Complex.hpp #include<iostream> #include<math.h> using namespace std; class Complex{ public: Complex (float r = 0, float i = 0) : real{r}, imag{ 阅读全文
posted @ 2022-10-12 22:20 akumanpower 阅读(33) 评论(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()=defualt; in 阅读全文
posted @ 2022-09-28 19:56 akumanpower 阅读(9) 评论(0) 推荐(0) 编辑