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

  • 实验4 继承

    task3源代码 battery.hpp #include<iostream> using namespace std; class Battery { public: Battery(int a=70):capcity(a){} void get_capcity() { cout << capci
    不要说我笨   2021-11-29 19:10   0   5
  • 实验四 继承

    task2.cpp #include <iostream> #include <typeinfo> // definitation of Graph class Graph { public: virtual void draw() { std::cout << "Graph::draw() : j
    白白的蓝天   2021-11-29 17:59   0   7
  • 实验四 继承

    #ifndef BATTER_HPP #define BATTER_HPP #include <iostream> using namespace std; class Batter { public: Batter(int capacity = 70) : capacity(capacity) {
    HUYEZ   2021-11-29 16:29   0   3
  • 实验4 继承

    任务三 task2.cpp #include <iostream> #include <typeinfo> // definitation of Graph class Graph { public: void draw() { std::cout << "Graph::draw() : just
    wzyyy   2021-11-29 16:10   0   3
  • 实验四

    task2源代码virtual #include <iostream> #include <typeinfo> // definitation of Graph class Graph { public: virtual void draw() { std::cout << "Graph::draw
    云洋2020   2021-11-29 12:49   0   3
  • 实验4 继承

    实验任务2 <task2.cpp> 1 #include<iostream> 2 #include<typeinfo> 3 4 class Graph 5 { 6 public: 7 void draw(){std::cout << "Graph::draw() : just as an inter
    dd摇摆   2021-11-29 00:02   0   4
  • C++ 实验四 任务报告

    继承
    李柳星   2021-11-28 23:51   0   2
  • 实验4 继承

    实验任务2 #include <iostream> #include <typeinfo> // definitation of Graph class Graph { public: void draw() { std::cout << "Graph::draw() : just as an in
    ymmmnn   2021-11-28 23:13   1   5
  • 实验4 继承

    实验任务2 <task2.cpp> #include <iostream> #include <typeinfo> // definitation of Graph class Graph { public: void draw() { std::cout << "Graph::draw() : j
    KIDX2   2021-11-28 22:15   0   3
  • 实验四 继承

    实验二源码: #include <iostream> #include <typeinfo> // definitation of Graph class Graph { public: void draw() { std::cout << "Graph::draw() : just as an i
    markpakka   2021-11-28 22:05   0   4