home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frostbyte's 1980s DOS Shareware Collection
/
floppyshareware.zip
/
floppyshareware
/
DOOG
/
CPTUTOR2.ZIP
/
ANSWERS.ZIP
/
CH07_2B.HPP
< prev
next >
Wrap
Text File
|
1990-07-20
|
422b
|
24 lines
// Chapter 7 - Programming exercise 2
#ifndef TRUCKHPP
#define TRUCKHPP
#include "vehicle.hpp"
class truck : public vehicle {
int passenger_load;
float payload;
public:
void init_truck(int how_many = 2, float max_load = 24000.0);
float efficiency(void);
int passengers(void);
};
#endif
// Result of execution
//
// (this file cannot be executed)