-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMenu.cpp
More file actions
77 lines (64 loc) · 1.57 KB
/
Copy pathMenu.cpp
File metadata and controls
77 lines (64 loc) · 1.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#include "Menu.h"
#include <iostream>
#include <Windows.h>
#include <mmsystem.h>
#include <vector>
#include <string>
#include <conio.h>
#include <thread>
#include <chrono>
#include "SDL.h"
#undef main
#pragma comment(lib, "winmm.lib")
int showMenu()
{
int select;
while (true)
{
system("cls");
std::cout << "(1) -> start\n";
std::cout << "(2) -> tutorial\n";
std::cout << "(3) -> volume\n";
std::cout << "(4) -> exit\n";
std::cin >> select;
if (select == 1)
{
std::cout << "Acuma boss...\n";
break;
}
if (select == 2)
{
while (true)
{
system("cls");
std::cout << "W A S D esti prost? \n\n";
std::cout << "(1) -> back \n";
std::cin >> select;
if (select == 1)
{
break;
}
}
}
if (select == 3)
{
while (true)
{
system("cls");
std::cout << "Alege volum de la 1 la 10: \n\n";
std::cout << "(1) -> back \n";
std::cin >> select;
int vol;
if (select == 1)
{
break;
}
}
}
if (select == 4)
{
std::cout << "Gata iesim...\n";
exit(0);
}
}
}