摘要:
任务二: person.hpp: #pragma once #include<iostream> #include<string> using namespace std; class Person { private:string name, telephone, email; public:Pe 阅读全文
摘要:
任务二: 1、 cpp: #include <iostream> #include <typeinfo> // definitation of Graph class Graph { public: void draw() { std::cout << "Graph::draw() : just a 阅读全文
摘要:
任务四: vector.hpp: #include<iostream> using namespace std; class Vector_int { private:int n, ori; int* p; public: Vector_int(int x, int y=0) :n(x), ori( 阅读全文
摘要:
任务五: info.hpp: #include<iostream> #include<string> #include<vector> using namespace std; class info { private: string nickname,contact,city;int n; sta 阅读全文
摘要:
。 阅读全文
摘要:
任务三: complex.h: #include<math.h> #include<iostream> class complex { private:double r,i; public:complex(){}; complex(double x,double y=0.0):r(x),i(y){} 阅读全文