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

  • 实验4 继承

    实验任务2 task2.cpp #include <iostream> #include <typeinfo> // definitation of Graph class Graph { public: void draw() { std::cout << "Graph::draw() : jus
    yami123   2021-11-25 14:34   0   8
  • 实验4继承

    实验二: task2.cpp: #include <iostream> #include <typeinfo> class Graph{ public: void draw(){ std::cout<<"Graph::draw() : just as an interface\n"; } }; cl
    叶金萌   2021-11-25 13:21   0   8
  • 实验四 继承

    实验二 task2.cpp #include <iostream> #include <typeinfo> // definitation of Graph class Graph { public: virtual void draw() { std::cout << "Graph::draw()
    Re-cursion   2021-11-25 12:52   0   4
  • 实验四 继承

    实验结论: 实验任务2: 源代码: #include <iostream> #include <typeinfo> // definitation of Graph class Graph { public: void draw() { std::cout << "Graph::draw() : j
    EliaukYob   2021-11-25 08:40   1   17
  • 实验四 继承

    实验三 Car.hpp #pragma once #include<iostream> #include<string> #include<iomanip> using namespace std; class Car { public: Car(string _maker, string _mod
    remake/   2021-11-25 08:09   0   7
  • 实验四 继承

    task2 //origin #include<iostream> #include<typeinfo> using namespace std; //definition og Graph class Graph { public: //声明时加入关键词virtual void draw() {
    gujia   2021-11-25 01:28   0   2
  • 面向对象->实验报告四(C++)

    task3 题目要求 源码 main.cpp #include <iostream> #include "electricCar.hpp" int main() { using namespace std; // test class of Car Car oldcar("Audi", "a4",
    xzajyjs   2021-11-25 01:11   1   8
  • 实验4 继承

    electricCar.hpp #include<string> using namespace std; class Battery{ public: Battery(int cap=70); ~Battery(); int get_capacity(); private: int capacit
    zhzhang-hong   2021-11-24 23:31   0   2
  • 实验四 继承

    恢复内容开始 //task2.cpp #include <iostream> #include <typeinfo> // definitation of Graph class Graph { public: void draw() { std::cout << "Graph::draw() :
    辛夸高岭桂   2021-11-24 23:23   1   5
  • 实验4 继承

    task2: 程序源码: #include <iostream> #include <typeinfo> // definitation of Graph class Graph { public: void draw() { std::cout << "Graph::draw() : just a
    沈超超   2021-11-24 23:08   0   8