Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <fstream>
- #include <cstdlib>
- #include <ctime>
- #include <conio.h>
- #include <windows.h>
- using namespace std;
- void menu()
- {
- cout << " _______ ___ ___ _______ ___ _ _______ ___ ___ _______ ___ _ _______ ______ " << endl;
- cout << "| || | | || || | | | | || | | | | || | | || || _ | " << endl;
- cout << "| _ || | | || _ || |_| | | || | | | | || |_| || ___|| | || " << endl;
- cout << "| |_| || | | || | | || _| | || | | | | || _|| |___ | |_||_ " << endl;
- cout << "| ___|| | ___| || |_| || |_ | _|| |___ | | | _|| |_ | ___|| __ |" << endl;
- cout << "| | | | | || || _ | | |_ | || | | |_ | _ || |___ | | | |" << endl;
- cout << "|___| |___| |_______||_______||___| |_| |_______||_______||___| |_______||___| |_||_______||___| |_|" << endl;
- }
- void wybor()
- {
- cout << " ";
- cout << "[ Start ] [ Opcje ] [ Wyjdz ]" << endl;
- }
- void gra();
- void opcje();
- int main()
- {
- int znak;
- int tab [3];
- int kursor = 1;
- while(znak!=27)
- {
- switch(znak)
- {
- case 77:
- {
- kursor++;
- break;
- }
- case 75:
- {
- kursor--;
- break;
- }
- }
- cout << znak << endl;
- menu();
- cout << " ";
- for(int i = 0; i<3 ;i++)
- {
- if(i!=kursor)
- {
- cout << " ";
- }
- else if(i == kursor)
- {
- cout << " vvv ";
- }
- }
- cout << endl;
- wybor();
- znak = getch();
- system("cls");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement