摘要:
#include<iostream> using namespace std; class Complex { private: double real,image; public: Complex(double real0=0,double image0=0):real{real0},image{ 阅读全文
摘要:
实验二源码: #include <iostream> #include <typeinfo> // definitation of Graph class Graph { public: void draw() { std::cout << "Graph::draw() : just as an i 阅读全文
摘要:
vector_int.hpp源码: #ifndef VECTOR_INT_HPP #define VECTOR_INT_HPP #include<iostream> #include<cassert> using namespace std; class Vector_int { private: 阅读全文
摘要:
实验任务5: Info.hpp文件源码: #ifndef INFO_HPP #define INFO_HPP #include<iostream> #include<string> using namespace std; class Info { private: string nickname; 阅读全文
摘要:
任务3:复数类complex .hpp文件源码 #ifndef COMPLEX_HPP #define COMPLEX_HPP #include<iostream> #include<math.h> using namespace std; class Complex { private: doub 阅读全文