Added EXIT option and some fine-tunings

Added EXIT option in the menu for getting out of the loop and added lines between printing the list and choices for fine-tuning the output.
This commit is contained in:
Manas Khosla
2018-09-28 23:41:01 +05:30
committed by GitHub
parent aead0ba366
commit de2f69a10a

View File

@@ -85,6 +85,7 @@ int main()
cout<<"\n2. Delete";
cout<<"\n3. Search";
cout<<"\n4. Print";
cout<<"\n0. Exit";
cout<<"\n\nEnter you choice : ";
cin>>choice;
switch (choice)
@@ -98,7 +99,8 @@ int main()
case 3 : cout<<"\nEnter the element to be searched : ";
cin>>x;
search(x); break;
case 4 : show(); break;
case 4 : show();
cout<<"\n"; break;
}
}
while(choice!=0);