摘要:
实验任务2 Person.hpp #include<iostream> #include<string> using namespace std; class Person{ public: Person(){}; Person(string a,string b,string c=" "):nam 阅读全文
摘要:
实验任务2: 修改前task2.cpp: #include <iostream> #include <typeinfo> // definitation of Graph class Graph { public: void draw() { std::cout << "Graph::draw() 阅读全文
摘要:
四、实验结论 1.实验任务1-3 验证性实验。 2.实验任务4 vector_int.hpp #include<iostream> using namespace std; class Vector_int{ public: Vector_int(int n); Vector_int(int n,i 阅读全文
摘要:
实验任务五: info.hpp #include<string> #include <iostream> using namespace std; class Info{ public: Info(string name="xxx",string contact="xxx",string city= 阅读全文
摘要:
实验结论 实验任务三: Comple.hpp 源码: using namespace std; #include<iostream> class Complex { public: Complex(double r = 3, double i = 0) :real(r), imag(i) {}; C 阅读全文