c90db01dc8
SimGear and TerraGear appear to have been split off at this time.
21 lines
356 B
C++
21 lines
356 B
C++
#include <Debug/fg_debug.h>
|
|
#include <Include/general.h>
|
|
#include "airports.hxx"
|
|
|
|
fgGENERAL general;
|
|
|
|
main() {
|
|
fgAIRPORTS a;
|
|
fgAIRPORT air;
|
|
|
|
general.root_dir = getenv("FG_ROOT");
|
|
|
|
fgInitDebug();
|
|
|
|
a.load("Airports");
|
|
|
|
air = a.search("P13");
|
|
|
|
printf("%s %lf %lf %lf\n", air.id,
|
|
air.longitude, air.latitude, air.elevation);
|
|
}
|