vehicle.h

来自「Since the field of object oriented progr」· C头文件 代码 · 共 26 行

H
26
字号
                                 // Chapter 7 - Program 1 - VEHICLE.H
// vehicle header file

#ifndef VEHICLE_H
#define VEHICLE_H

class vehicle 
{
protected:
   int wheels;
   float weight;
public:
   void initialize(int in_wheels, float in_weight);
   int get_wheels(void);
   float get_weight(void);
   float wheel_loading(void);
};

#endif



// Result of execution
//
// (This file cannot be executed)

⌨️ 快捷键说明

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