home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
vol_300
/
353_02
/
answers
/
ch07_2b.h
< prev
next >
Wrap
Text File
|
1992-01-19
|
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)