int main() { while(1) { switch(menu1()) { case 0: exit(0); break; case 1: input(); break; case 2: Addrecode(); break; case 3: cancel(); break; case 4: output(); break; case 5: search(); break; } } }