面向对象程序设计-2020级 (南京信息工程大学)

  • 实验四 继承

    实验任务 二 tsak2.cpp文件源码 #include <typeinfo> // definitation of Graph class Graph { public: virtual void draw() { std::cout << "Graph::draw() : just as an
    致命华彩真实伤害   2021-11-30 14:54   0   6
  • 实验四 继承

    #include <iostream> #include <typeinfo> // definitation of Graph class Graph { public: void draw() { std::cout << "Graph::draw() : just as an interfac
    直树不是植树   2021-11-30 12:25   0   2
  • 实验四(继承)

    task2.1: #include <iostream> #include <typeinfo> // definitation of Graph class Graph { public: void draw() { std::cout << "Graph::draw() : just as an
    玖馆不打烊   2021-11-29 22:45   0   0
  • 实验四 继承

    任务1 期中练习1 #include<iostream> #include<map> #include<string> int main() { using namespace std; map<int,char> letter{{0,'a'},{1,'b'},{2,'c'},{3,'d'},{4,
    过路游人XYZ   2021-11-29 22:17   0   3
  • 实验四 继承

    任务二 task2: #include <iostream> #include <typeinfo> // definitation of Graph class Graph { public: void draw() { std::cout << "Graph::draw() : just as
    越来越懒了   2021-11-29 21:46   0   2
  • 实验四

    task 2 改动后 1 #include<iostream> 2 #include<typeinfo> 3 4 //definition of Graph 5 class Graph 6 { 7 public: 8 void draw(){ std::cout<<"Graph::draw() :
    随便取个名字拉   2021-11-29 21:34   0   3
  • 实验四 继承

    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
    悟道树   2021-11-29 20:11   0   4
  • 实验4 继承

    实验任务2 基类Graph的成员函数draw()前面不加关键字virtual时 源代码: 1 #include <iostream> 2 #include <typeinfo> 3 /* run this program using the console pauser or add your ow
    敲代码的喵   2021-11-29 19:55   0   2
  • 实验四:继承

    任务二: 1、 cpp: #include <iostream> #include <typeinfo> // definitation of Graph class Graph { public: void draw() { std::cout << "Graph::draw() : just a
    在野车辙   2021-11-29 19:52   0   3
  • 实验四 继承

    task2.cpp 改动后代码 #include <iostream> #include <typeinfo> // definitation of Graph class Graph { public: virtual void draw() { std::cout << "Graph::draw
    纸鸢*   2021-11-29 19:19   0   10