摘要:
Person.hpp 1 #ifndef PERSON_HPP 2 #define PERSON_HPP 3 4 #include<string> 5 #include<iostream> 6 7 using namespace std; 8 9 class Person 10 { 11 publi 阅读全文
摘要:
task2 改动后 1 #include <iostream> 2 #include <typeinfo> 3 4 // definitation of Graph 5 class Graph 6 { 7 public: 8 void draw() { std::cout << "Graph::dr 阅读全文
摘要:
task4.hpp 1 #pragma once 2 #ifndef VECTOR_INT_HPP 3 #define VECTOR_INT_HPP 4 #include<iostream> 5 6 class vector_int 7 { 8 private: 9 int* p; 10 int s 阅读全文
摘要:
info.hpp 1 #include<iostream> 2 #include<string> 3 using namespace std; 4 class Info{ 5 6 public: 7 Info(string name,string phone,string place,string 阅读全文
摘要:
#ifndef COMPLEX_HPP #define COMPLEX_HPP #include<iostream> #include<cmath> using namespace std; class Complex { private: double real; double imag; pub 阅读全文