fork download
  1. #include<stdio.h>
  2. #include <stdlib.h>
  3. void searchreservation(){
  4. }
  5. void addnewreservation(){}
  6. void updatereservation(){
  7. }
  8. void viewreservation(){
  9. }
  10. int main() /*the menu, used as displaying MainMenu*/
  11. {
  12.  
  13. int ChooseI;
  14. //system("cls");
  15. printf( "@~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~@\n");
  16. printf( "| Welcome to Nway Karaoke reserving system |\n");
  17. printf( "@~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~@\n");
  18. printf( "1. Add reservation\n");
  19. printf( "2. search reservation\n");
  20. printf( "3. update reservation\n");
  21. printf( "4. view reservation\n");
  22. printf( "6. Exit\n");
  23. printf( "@~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~@\n");
  24. scanf("%d", &ChooseI);
  25.  
  26.  
  27.  
  28.  
  29. switch (ChooseI)
  30. {
  31. case 1: addnewreservation();
  32. break;
  33.  
  34. case 2: updatereservation();
  35. break;
  36.  
  37. case 3: viewreservation();
  38. break;
  39.  
  40. case 4: searchreservation();
  41. break;
  42.  
  43. case 5: exit(0);
  44. break;
  45.  
  46. default: printf("hi");
  47. }
  48. //system("pause");
  49. }
Success #stdin #stdout 0s 2252KB
stdin
Standard input is empty
stdout
@~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~@
|   Welcome to Nway Karaoke reserving system   |
@~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~@
1. Add reservation
2. search reservation
3. update reservation
4. view reservation
6. Exit
@~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~@
hi