how im gonna loop menu if option not 1 or 2 ???
Code:void display( ) { int option; system("cls"); //clear screen cout<<endl<<endl; cout<<"\t * Display Menu *\n"; cout<<"\n\t1. Display For Certein Date"<<endl; cout<<"\t2. Display All Appointments"<<endl; cout<<"\nEnter Option Number: "; //Enter option cin>>option; cin.get(); switch ( option ) { case 1: displayCerteinDate ( ); break; case 2: displayAll ( ); break; default: cout<<endl<<"Wrong option number!! Try again\n"; cin.get(); //give the user a chance to read the output data } }