c29.h

来自「C++程序设计教程(第二版)课件以及源代码 是初学者接触并能很好理解的参考书」· C头文件 代码 · 共 19 行

H
19
字号
//=====================================
// c29.h
//=====================================
#ifndef HEADER_C29
#define HEADER_C29
#include"inch29.h"
#include"liquidcrystal.h"
#include<iostream>
//-------------------------------------
class C29 : public Inch29, protected LiquidCrystal{
public:
  void adjustVolume(){ std::cout<<"LiquidCrystal29 AdjustVolume\n"; }
  void switchChannel(){ std::cout<<"LiquidCrystal29 SwitchChannel\n"; }
  void adjustLight(){ std::cout<<"LiquidCrystal29 AdjustLight\n"; }
 ~C29(){}
};//-----------------------------------
#endif  // HEADER_C29

 

⌨️ 快捷键说明

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