摘要:
task3: 3.1代码: #include <iostream> #include <fstream> #include <array> #define N 5 int main() { using namespace std; array<int, N> x {97, 98, 99, 100, 阅读全文
摘要:
task4: pets.hpp: #pragma once #include<iostream> #include<string> using namespace std; class MachinePets { public: MachinePets(){ } MachinePets(const 阅读全文
摘要:
task 5: #include<iostream> #include <cassert> #include<stdlib.h> #define value 1 using namespace std; class vectorint { public: vectorint(int a) { ele 阅读全文
摘要:
#include "info.hpp" #include <iostream> #include<vector> #include<cstring> int main() { int count=0; const int capacity=100; vector<Info>audience_info 阅读全文
摘要:
实验任务4: Complex.hpp: #pragma once #include<iostream> #include<string> #include<iomanip> #include<math.h> using namespace std; class Complex { public: C 阅读全文
摘要:
#include "Complex.hpp" #include <iostream> void test() { using namespace std; Complex c1(3, -4); const Complex c2(4.5); Complex c3(c1); cout << "c1 = 阅读全文
摘要:
实验任务2: #include<iostream> using namespace std; class Point {public: Point(int x0 = 0, int y0 = 0); Point(const Point&p ); ~Point() = default; int get_ 阅读全文