Advertisement
Guest User

CLciker_podsyawa

a guest
May 22nd, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.70 KB | None | 0 0
  1. #include <iostream>
  2. #include <fstream>
  3. #include <cstdlib>
  4. #include <ctime>
  5. #include <conio.h>
  6. #include <windows.h>
  7.  
  8. using namespace std;
  9.  
  10. void menu()
  11. {
  12. cout << " _______ ___ ___ _______ ___ _ _______ ___ ___ _______ ___ _ _______ ______ " << endl;
  13. cout << "| || | | || || | | | | || | | | | || | | || || _ | " << endl;
  14. cout << "| _ || | | || _ || |_| | | || | | | | || |_| || ___|| | || " << endl;
  15. cout << "| |_| || | | || | | || _| | || | | | | || _|| |___ | |_||_ " << endl;
  16. cout << "| ___|| | ___| || |_| || |_ | _|| |___ | | | _|| |_ | ___|| __ |" << endl;
  17. cout << "| | | | | || || _ | | |_ | || | | |_ | _ || |___ | | | |" << endl;
  18. cout << "|___| |___| |_______||_______||___| |_| |_______||_______||___| |_______||___| |_||_______||___| |_|" << endl;
  19. }
  20.  
  21. void wybor()
  22. {
  23. cout << " ";
  24. cout << "[ Start ] [ Opcje ] [ Wyjdz ]" << endl;
  25. }
  26. void gra();
  27. void opcje();
  28. int main()
  29. {
  30. int znak;
  31. int tab [3];
  32. int kursor = 1;
  33. while(znak!=27)
  34. {
  35. switch(znak)
  36. {
  37. case 77:
  38. {
  39. kursor++;
  40. break;
  41. }
  42. case 75:
  43. {
  44. kursor--;
  45. break;
  46. }
  47. }
  48. cout << znak << endl;
  49. menu();
  50. cout << " ";
  51. for(int i = 0; i<3 ;i++)
  52. {
  53. if(i!=kursor)
  54. {
  55. cout << " ";
  56. }
  57. else if(i == kursor)
  58. {
  59. cout << " vvv ";
  60. }
  61.  
  62. }
  63. cout << endl;
  64. wybor();
  65.  
  66.  
  67. znak = getch();
  68. system("cls");
  69. }
  70. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement