⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cari.h

📁 it is a usefull thing
💻 H
字号:
//=====================================
// cari.h
//=====================================
#ifndef HEADER_CARI
#define HEADER_CARI
//-------------------------------------
#include"car.h"
#include<iostream>
using namespace std;
//-------------------------------------
class Car1 : public Car{
public:
  void open()const{ std::cout<<"Open the Car1 door.\n"; }
};//-----------------------------------
class Car2 : public Car{
public:
  void open()const{ std::cout<<"Open the Car2 door.\n"; }
};//-----------------------------------
class Car21 : public Car2{
public:
  void open()const{ std::cout<<"Open the Car21 door.\n"; }
};//-----------------------------------
class Car22 : public Car2{
public:
  void open()const{ std::cout<<"Open the Car22 door.\n"; }
};//-----------------------------------
#endif  // HEADER_CARI

 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -