while (AutoPilot) {
CurrentLocation = GetGurrentLocation ();
Path = ReadingFlyingPath ();
FixAirline (CurrentLocation, Path); //修正航线
AutoPilot = IsContinueAutoPilot ();
}
总共六行程式码 前提是子程式
GetGurrentLocation (),
ReadingFlyingPath (),
FixAirline (),
IsContinueAutoPilot ()
要先写好
至于宣告那些 就不特别写出来了 请自行定义