摘要: task 2: #include <iostream> #include <fstream> #include <vector> #include <string> using namespace std; class Person { private: string name, email; in 阅读全文
posted @ 2021-12-14 17:33 言风阁 阅读(14) 评论(3) 推荐(0)
摘要: 任务二 #include <typeinfo> #include <iostream> using namespace std; //定义Graph类 class Graph { public: void draw() //通过virtual关键词,改变指针ptr指向 { cout << "Grap 阅读全文
posted @ 2021-11-26 16:28 言风阁 阅读(36) 评论(3) 推荐(0)
摘要: 任务四 vector_hpp #ifndef VECTOR_INT_HPP #define VECTOR_INT_HPP #include <iostream> using namespace std; class Vector_int{ public: Vector_int(int size,in 阅读全文
posted @ 2021-11-11 15:30 言风阁 阅读(16) 评论(3) 推荐(0)
摘要: 1.实验5 // 任务4 作业1.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。 // #include <string> #include <iostream> #include <vector> using namespace std; class info { pri 阅读全文
posted @ 2021-11-03 15:15 言风阁 阅读(52) 评论(3) 推荐(0)
摘要: #include<iostream> #include<cmath> using namespace std; class Complex{ private: double real, imag; public: Complex(); Complex(double r = 0, double i = 阅读全文
posted @ 2021-10-25 22:40 言风阁 阅读(22) 评论(3) 推荐(0)
点击右上角即可分享
微信分享提示