This program is supposed to be a menu system for holiday destinations. As you can see, no menu is displayed, but the user simply has to press a letter and the name of the country is displayed as destination.
So, could anyone give me a better way to output my program?
Code://--------------------------------------------------------------------------- #include<conio> #include<iostream> #include<cstring> #pragma hdrstop using namespace std; //--------------------------------------------------------------------------- #pragma argsused int main(int argc, char* argv[]) { char choice; while ( ( choice = cin.get() ) != 'q' ) { cin.ignore(); switch ( choice ) { case 'a': cout << "Chosen destination is Australia" << endl; break; case 'u': cout << "Chosen destination is United States" << endl; break; case 't': cout << "Chosen destination is Thailand" << endl; break; case 'f': cout << "Chosen destination is France" << endl; break; case 'g': cout << "Chosen destination is Germany" << endl; break; default: cout << "Invalid Choice" ; } } return 0; } //---------------------------------------------------------------------------