while (AutoPilot) {
CurrentLocation = GetGurrentLocation ();
Path = ReadingFlyingPath ();
FixAirline (CurrentLocation, Path); //修正航線
AutoPilot = IsContinueAutoPilot ();
}
總共六行程式碼 前提是子程式
GetGurrentLocation (),
ReadingFlyingPath (),
FixAirline (),
IsContinueAutoPilot ()
要先寫好
至於宣告那些 就不特別寫出來了 請自行定義