19物联网一班李大伟

2021年12月22日

实验五 模板类与多态

摘要: task2 Person.h #pragma once #include<iostream> #include<string> using namespace std; class Person { private: string name, telephone, email ; public: P 阅读全文

posted @ 2021-12-22 15:39 19物联网一班李大伟 阅读(29) 评论(0) 推荐(0) 编辑

实验三

摘要: #pragma once #include<iostream> class Vector_int { public: Vector_int(int n); Vector_int(int n, int m); Vector_int(Vector_int& x); int &at(int i); voi 阅读全文

posted @ 2021-12-22 15:37 19物联网一班李大伟 阅读(9) 评论(0) 推荐(0) 编辑

实验二

摘要: Info.hpp #pragma once #include<iostream> #include<string> #include<iomanip> using namespace std; class Info { public: Info(string nickname1, string co 阅读全文

posted @ 2021-12-22 15:37 19物联网一班李大伟 阅读(10) 评论(0) 推荐(0) 编辑

实验四 继承

摘要: 2.实验任务2 #include <iostream> #include <typeinfo> // definitation of Graph class Graph { public: void draw() { std::cout << "Graph::draw() : just as an 阅读全文

posted @ 2021-12-22 15:37 19物联网一班李大伟 阅读(16) 评论(0) 推荐(0) 编辑

2021年10月26日

实验1 类与对象

摘要: 1、实验任务3 程序源码 Complex.hpp #ifndef COMPLEX_HPP #define COMPLEX_HPP #include <iostream> #include <iomanip> #include <string> #include <math.h> using name 阅读全文

posted @ 2021-10-26 11:46 19物联网一班李大伟 阅读(41) 评论(0) 推荐(0) 编辑

导航