11 2021 档案
实验四 继承
摘要:任务二 源代码 task2.cpp #include<iostream> #include<typeinfo> class Graph { public: void draw() { std::cout << "Graph::draw() : just as an interface\n"; } } 阅读全文
posted @ 2021-11-27 09:17 Popcorn_ZSJ 阅读(60) 评论(3) 推荐(0)
实验三 类和对象Ⅱ
摘要:任务4 源代码: Vector_int.hpp #pragma once #include<iostream> #include<cassert> class Vector_int { public: Vector_int(int n); Vector_int(int n, int initial) 阅读全文
posted @ 2021-11-07 09:07 Popcorn_ZSJ 阅读(51) 评论(3) 推荐(1)