摘要:
任务二 源代码 Person.hpp #pragma once #include<iostream> #include <iomanip> #include<string> using namespace std; class Person { friend ostream& operator<<( 阅读全文
摘要:
任务二 源代码 task2.cpp #include<iostream> #include<typeinfo> class Graph { public: void draw() { std::cout << "Graph::draw() : just as an interface\n"; } } 阅读全文
摘要:
任务4 源代码: Vector_int.hpp #pragma once #include<iostream> #include<cassert> class Vector_int { public: Vector_int(int n); Vector_int(int n, int initial) 阅读全文
摘要:
任务5 源代码: info.hpp #ifndef INFO_HPP #define INFO_HPP #include<iostream> #include<string> #include<iomanip> using namespace std; class Info { public: In 阅读全文