摘要:
实验内容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, 阅读全文
摘要:
实验内容四 pets.hpp #include <iostream> using namespace std; // abstract class class MachinePets{ public: MachinePets(const string s){ nickname=s; } virtua 阅读全文
摘要:
实验任务五 vectorint.hpp #include<iostream> using namespace std; class vectorint { public: vectorint(int n) { length = n; arr = new int[n]; cout << "constr 阅读全文
摘要:
任务5 实验代码 Info.hpp #pragma once #include<iostream> #include<iomanip> using namespace std; class Info { private: string nickname, contact, city; int n; 阅读全文
摘要:
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{ 阅读全文
摘要:
任务二 代码: #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 阅读全文