摘要:
#include <iostream> #include <fstream> #include <vector> #include "Person.hpp" int main() { using namespace std; vector<Person> phone_book; Person p; 阅读全文
摘要:
#include <iostream>#include <typeinfo> // definitation of Graph class Graph { public: void draw() { std::cout << "Graph::draw() : just as an interface 阅读全文
摘要:
#include<iostream> using namespace std; class Vector_int { public: Vector_int(int n);//构造函数 Vector_int(int n, int starting);//重载构造函数 Vector_int(Vector 阅读全文
摘要:
#include <iostream> #include <string> using namespace std; class info { public: info(string nickname, string contact, string city, int n) : nickname{ 阅读全文
摘要:
#include <iostream> #include <cmath> using namespace std; class complex { public: complex(double m, double n = 0) : real{ m }, imag{ n }{} complex(com 阅读全文