Advertisement
Guest User

Untitled

a guest
Nov 26th, 2014
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. cout<<"Welcome To My Programn"<<endl<<endl;
  2.  
  3. cout<<"Menun"<<endl;
  4. cout<<"1.Create a new listn"<<endl;
  5. cout<<"2.Insert new recordn"<<endl;
  6. cout<<"3.Delete new recordn"<<endl;
  7. cout<<"4.find a new recordn"<<endl;
  8. cout<<"5.Exitn"<<endl;
  9. cout<<"Select your menu:n"<<endl;
  10. cin>>selection;
  11. return selection;
  12.  
  13. select = menu();
  14. do{
  15.  
  16. if (select==1){
  17. cout<<"Create new menu:n"<<endl;
  18. }
  19. else if (select==2){
  20. cout<<"Insert new record:n"<<endl;
  21. }
  22. else if (select==3){
  23. cout<<"Delete new record:n"<<endl;
  24. }
  25. else if (select==4)
  26. {
  27. cout<<"Find a new record:n"<<endl;
  28. }
  29.  
  30. else
  31. {
  32. cout<<"Invalid selection Enteredn"<<endl;
  33. }
  34.  
  35. select = menu();
  36. }while(select !=5);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement