摘要: #include<iostream> #include<string> using namespace std; class Person{ public: Person(){}; Person(string n, string t, string e = ""): name(n), telepho 阅读全文
posted @ 2021-12-15 11:17 yxg208 阅读(9) 评论(3) 推荐(0) 编辑
摘要: #include <iostream> #include <typeinfo> // definitation of Graph class Graph { public: void draw() { std::cout << "Graph::draw() : just as an interfac 阅读全文
posted @ 2021-11-30 15:26 yxg208 阅读(41) 评论(3) 推荐(0) 编辑
摘要: #include"vector_int.hpp" int main(){ using namespace std; int n=5; Vector_int x(n); Vector_int k(n, 6); Vector_int y(k); y.at(0)=999; cout<<y.at(0)<<e 阅读全文
posted @ 2021-11-09 20:27 yxg208 阅读(8) 评论(3) 推荐(0) 编辑
摘要: #ifndef INFO_HPP #define INFO_HPP #include<string> #include<iostream> using namespace std; class info{ public: info(string na,string co,string ci,int 阅读全文
posted @ 2021-11-03 12:22 yxg208 阅读(7) 评论(3) 推荐(0) 编辑
摘要: #ifndef COMPLEX_HPP#define COMPLEX_HPP#include <iostream>#include <math.h>class Complex{ public: Complex():real(0.0),imag(0.0){} Complex(int r,int i): 阅读全文
posted @ 2021-10-26 18:57 yxg208 阅读(34) 评论(3) 推荐(0) 编辑