-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.cpp
More file actions
63 lines (37 loc) · 800 Bytes
/
test.cpp
File metadata and controls
63 lines (37 loc) · 800 Bytes
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
#include <iostream>
using namespace std;
void entrar(){
int quest=0;
cout << "responda minhas perguntas,para ganhar pontos"<<endl;
}
void personagem(){
string person[] = {"messi","neymar"};
cout << person;
}
void menu(){
int menu_personagem;
cout << "1-para entrar no jogo\n";
cout << "2 para ver os personagens\n";
cin >> menu_personagem;
if(menu_personagem == 1){
entrar();
}
else if(menu_personagem == 2){
personagem();
}
}
void Iniciar(){
char iniciar;
cout << "deseja iniciar?\n";
cin >> iniciar;
if(iniciar == 's' || iniciar == 'S'){
menu();
}
else if (iniciar == 'n' || iniciar == 'N'){
system("exit");
}
}
int main(){
personagem();
return 0;
}