#include <bits/stdc++.h>
using namespace std;
struct Passengers {
string name;
string phone;
string email;
string gender;
};
struct Ticket {
string airlines;
int ticket_id;
string from;
string to;
string airport;
int flight_code;
string boarding_time;
int seat;
};
int binarySearch() { // mencari from dan to dari kode;
return -1;
}
pair <string, pair<string, string>> airports[25] = {
{"Soekarno-Hatta International Airport", {"CGK", "Jakarta"}},
{"Ngurah Rai International Airport", {"DPS", "Denpasar"}},
{"Juanda International Airport", {"SUB", "Surabaya"}},
{"Sultan Hasanuddin International Airport", {"UPG", "Makassar"}},
{"Kualanamu International Airport", {"KNO", "Medan"}},
{"Yogyakarta International Airport", {"YIA", "Yogyakarta"}},
{"Halim Perdanakusuma Airport", {"HLP", "Jakarta"}},
{"Hang Nadim International Airport", {"BTH", "Batam"}},
{"Sultan Mahmud Badaruddin II International Airport", {"PLM", "Palembang"}},
{"Ahmad Yani International Airport", {"SRG", "Semarang"}},
{"Husein Sastranegara International Airport", {"BDO", "Bandung"}},
{"Supadio International Airport", {"PNK", "Pontianak"}},
{"Zainuddin Abdul Madjid International Airport", {"LOP", "Praya"}},
{"Sultan Syarif Kasim II International Airport", {"PKU", "Pekanbaru"}},
{"Minangkabau International Airport", {"PDG", "Padang"}},
{"Syamsudin Noor International Airport", {"BDJ", "Banjarmasin"}},
{"Sam Ratulangi International Airport", {"MDC", "Manado"}},
{"Radin Intan II International Airport", {"TKG", "Bandar Lampung"}},
{"Adi Soemarmo International Airport", {"SOC", "Solo"}},
{"Sentani International Airport", {"DJJ", "Jayapura"}},
{"Pattimura Airport", {"AMQ", "Ambon"}},
{"Sultan Iskandar Muda International Airport", {"BTJ", "Aceh"}},
{"Samarinda International Airport", {"AAP", "Samarinda"}},
{"Frans Kasiepo Airport", {"BIK", "Biak"}},
{"Mozes Kilangin Aiport", {"TIM", "Timika"}}
};
void greetingMsg() {
string greeting_head = "\033[3m\033[1m\033[4mSelamat Datang di Aeronaut!\033[0m\n";
string greeting_next = "Pesan tiket cepat, perjalanan hebat!\n\n";
cout << greeting_head << greeting_next;
}
void lanjutOrNot() {
cout << "Menu:\n 1. Lanjut\n 2. Keluar\nPilih Menu: ";
int in;
cin >> in;
if(in != 1) {
exit(0);
}
}
int main() {
greetingMsg();
lanjutOrNot();
cout << "Bersambung...";
}
I2luY2x1ZGUgPGJpdHMvc3RkYysrLmg+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CgpzdHJ1Y3QgUGFzc2VuZ2VycyB7CglzdHJpbmcgbmFtZTsKCXN0cmluZyBwaG9uZTsKCXN0cmluZyBlbWFpbDsKCXN0cmluZyBnZW5kZXI7Cn07CgpzdHJ1Y3QgVGlja2V0IHsKCXN0cmluZyBhaXJsaW5lczsKCWludCB0aWNrZXRfaWQ7CglzdHJpbmcgZnJvbTsKCXN0cmluZyB0bzsKCXN0cmluZyBhaXJwb3J0OwoJaW50IGZsaWdodF9jb2RlOwoJc3RyaW5nIGJvYXJkaW5nX3RpbWU7CglpbnQgc2VhdDsKfTsKCmludCBiaW5hcnlTZWFyY2goKSB7IC8vIG1lbmNhcmkgZnJvbSBkYW4gdG8gZGFyaSBrb2RlOwoKCXJldHVybiAtMTsKfQoKcGFpciA8c3RyaW5nLCBwYWlyPHN0cmluZywgc3RyaW5nPj4gYWlycG9ydHNbMjVdID0gewogICAgeyJTb2VrYXJuby1IYXR0YSBJbnRlcm5hdGlvbmFsIEFpcnBvcnQiLCB7IkNHSyIsICJKYWthcnRhIn19LAogICAgeyJOZ3VyYWggUmFpIEludGVybmF0aW9uYWwgQWlycG9ydCIsIHsiRFBTIiwgIkRlbnBhc2FyIn19LAogICAgeyJKdWFuZGEgSW50ZXJuYXRpb25hbCBBaXJwb3J0IiwgeyJTVUIiLCAiU3VyYWJheWEifX0sCiAgICB7IlN1bHRhbiBIYXNhbnVkZGluIEludGVybmF0aW9uYWwgQWlycG9ydCIsIHsiVVBHIiwgIk1ha2Fzc2FyIn19LAogICAgeyJLdWFsYW5hbXUgSW50ZXJuYXRpb25hbCBBaXJwb3J0Iiwg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