摘要:
实验二: task2.cpp: #include <iostream> #include <fstream> #include <vector> #include "Person.hpp" int main() { using namespace std; vector<Person> phone_ 阅读全文
摘要:
实验二: task2.cpp: #include <iostream> #include <typeinfo> class Graph{ public: void draw(){ std::cout<<"Graph::draw() : just as an interface\n"; } }; cl 阅读全文
摘要:
实验4: vector_int.hpp: #include <iostream> #include <cassert> using namespace std; class vector_int{ public: vector_int(int x,int y=1):m(x),n(y){ p=new 阅读全文
摘要:
实验五: Info.hpp: #include <iostream> #include <string> using namespace std; class Info{ public: Info(string a=" ",string b=" ",string c=" ",int d=0):nic 阅读全文
摘要:
实验3: Complex.hpp: #ifndef Complex_hp #define Complex_hp #include <iostream> #include <cmath> using namespace std; class Complex { public: Complex() = 阅读全文