摘要:
实验任务4 #ifndef VECTOR_INT_H #define VECTOR_INT_H #include<iostream> #include<cassert> using namespace std; class vector_int{ public: vector_int(int n,i 阅读全文
摘要:
task2、 Person.hpp #include<iostream> #include<string> #include<iomanip> using namespace std; class Person { private: string name; string telephone; st 阅读全文
摘要:
#include <iostream> #include <typeinfo> // definitation of Graph class Graph { public: virtual void draw() { std::cout << "Graph::draw() : just as an 阅读全文
摘要:
实验五、 Info.hpp: #include<iostream> #include<string> using namespace std; class Info{ public: Info(string nc="***",string ct="******",string cy="**",int 阅读全文
摘要:
一、实验任务3 不使用C++标准库,自行设计并实现一个复数类Complex: Complex.hpp: #include<iostream> #include<cmath> using namespace std; class Complex{ public: Complex(float x=0,f 阅读全文