摘要:
实验任务2 Person.hpp #include<iostream> #include<string> using namespace std; class Person{ public: Person(){}; Person(string a,string b,string c=" "):nam 阅读全文
摘要:
实验任务2 #include <iostream> #include <typeinfo> // definitation of Graph class Graph { public: void draw() { std::cout << "Graph::draw() : just as an in 阅读全文
摘要:
实验任务四 vector.hpp #include<iostream> using namespace std; class Vector_int{ public: Vector_int(int n):size(n){ a=new int[size]; cout<<"Default Construc 阅读全文
摘要:
实验结论: 实验任务5: info.hpp #include <iostream> #include <vector> #include <string> using namespace std; class Info{ private: string nickname; string contac 阅读全文
摘要:
实验结论: 实验任务三: Complex.hpp #include<iostream> #include<math.h> using namespace std; class Complex { public: Complex():real(0),imag(0){} Complex(float x) 阅读全文