随笔分类 - c++实验报告
摘要:task2: person.hpp: #include <iostream> #include <string> using namespace std; class Person { public: Person() { } Person(string a, string b, string c
阅读全文
摘要:实验二 task2.cpp #include <iostream> #include <typeinfo> // definitation of Graph class Graph { public: virtual void draw() { std::cout << "Graph::draw()
阅读全文
摘要:实验任务4 vector_int.hpp #include<iostream> #include<cassert> using namespace std; class Vector_int{ public: Vector_int(int Size,int Value = 0); Vector_in
阅读全文
摘要:实验任务5 Info.hpp #include<iostream> #include<string> using namespace std; class Info{ public: Info(string name = "",string con = "",string ci = "",int n
阅读全文
摘要:实验任务3 "Complex.hpp" #include<iostream> #include<cmath> using namespace std; class Complex { public: Complex(double a = 0,double b = 0):real{a},imag{b}
阅读全文
浙公网安备 33010602011771号