摘要: #include<iostream> using namespace std; class Complex { private: double real,image; public: Complex(double real0=0,double image0=0):real{real0},image{ 阅读全文
posted @ 2021-12-13 20:25 markpakka 阅读(50) 评论(3) 推荐(0) 编辑
摘要: 实验二源码: #include <iostream> #include <typeinfo> // definitation of Graph class Graph { public: void draw() { std::cout << "Graph::draw() : just as an i 阅读全文
posted @ 2021-11-28 22:05 markpakka 阅读(42) 评论(3) 推荐(0) 编辑
摘要: vector_int.hpp源码: #ifndef VECTOR_INT_HPP #define VECTOR_INT_HPP #include<iostream> #include<cassert> using namespace std; class Vector_int { private: 阅读全文
posted @ 2021-11-10 00:28 markpakka 阅读(21) 评论(3) 推荐(0) 编辑
摘要: 实验任务5: Info.hpp文件源码: #ifndef INFO_HPP #define INFO_HPP #include<iostream> #include<string> using namespace std; class Info { private: string nickname; 阅读全文
posted @ 2021-11-01 00:24 markpakka 阅读(40) 评论(3) 推荐(0) 编辑
摘要: 任务3:复数类complex .hpp文件源码 #ifndef COMPLEX_HPP #define COMPLEX_HPP #include<iostream> #include<math.h> using namespace std; class Complex { private: doub 阅读全文
posted @ 2021-10-26 22:44 markpakka 阅读(20) 评论(3) 推荐(0) 编辑