00001 //*************************************************************************** 00002 #ifndef _AIRPLANE_H 00003 #define _AIRPLANE_H 00004 //*************************************************************************** 00005 #ifdef __GNUG__ 00006 #include <vector> 00007 #include <vector.h> 00008 #else 00009 #include <vector> 00010 #endif 00011 #include <stdio.h> 00012 #ifdef HPUX 00013 #include <iostream.h> 00014 #else 00015 #include <iostream> 00016 #endif 00017 #include "alloc.h" 00018 #ifdef _WIN32 00019 using namespace std; 00020 #endif 00021 //*************************************************************************** 00022 class AirplaneStruct 00023 { 00024 public: 00025 char Name[100]; 00026 double MaxTOW; // kg 00027 double MaxLW; // kg 00028 double WingSpan; // m 00029 double WingArea; // m^2 00030 double CruiseSpeed; // kph 00031 double LandingSpeed; // kph 00032 double Length; // m 00033 double TakeoffDistance; // m 00034 00035 AirplaneStruct &operator= (const AirplaneStruct &A); 00036 void GetRandom(); 00037 }; 00038 //*************************************************************************** 00039 void GetRandomAircraft(AirplaneStruct *A); 00040 //*************************************************************************** 00041 #endif // _AIRPLANE_H 00042 /***************************************************************************/
1.2.13.1 written by Dimitri van Heesch,
© 1997-2001