case'1':
{
... // case 1 will require you to input a ID number and a bunch of info..
break;
}
case'2':
{
...// case 2 is gonna search the ID and display the info
break;
}
the result would something like..
Whats your choice :1
Enter a ID no. : 0001 //USER is ask to make a ID number
Enter Name : Paolo //USER is ask to enter a Name
Enter Address: blah blah //USER is ask to enter an address
...Then if all the input is filled it will go back to the menu.
whats your choice :2
Enter ID : 0001 //User is ask to enter the ID number he created
Name : paolo // DISPLAY THE NAME
address : blah blah //DISPLAY THE ADDRESS
EDIT: REVISED my question can the switch statement do it.?