-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathquiz.cpp
More file actions
90 lines (82 loc) · 2.15 KB
/
quiz.cpp
File metadata and controls
90 lines (82 loc) · 2.15 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
78
79
80
81
82
83
84
85
86
87
88
89
90
#include <iostream>
#include <locale.h>
#include <string.h>;
#include "modules/ltt.cpp"
#include "modules/bd.cpp"
#include "modules/pw.cpp"
#include "modules/tp.cpp"
#include "modules/pa.cpp"
#include "modules/fi.cpp"
#include "modules/dd.cpp"
#include "modules/aps.cpp"
using namespace std;
int execute(){
setlocale(LC_ALL, "portuguese");
system("color F0");
int resp;
while (true){
cout << "\n -=-=-=-=-=-=-=-=-=-=-=-=-=-=-\n";
cout << " .oPYo. o o o oooooo \n";
cout << " 8 8 8 8 8 d' \n";
cout << " 8 8 8 8 8 d' \n";
cout << " 8 d.8 8 8 8 d' \n";
cout << " 8 `b8. 8 8 8 d' \n";
cout << " `YooP'P `YooP' 8 dooooo \n";
cout << " :....:.::::.....:::..::.......\n";
cout << " ::::::::::::::::::::::::::::::\n";
cout << " ::::::::::::::::::::::::::::::\n";
cout << "\n -=-=-=-=-=-=-=-=-=-=-=-=-=-=-";
cout << "\n [1] Programação Web";
cout << "\n [2] Banco de dados";
cout << "\n [3] Linguagem, trabalho, tecnologia";
cout << "\n [4] Técnicas de programação";
cout << "\n [5] Programação e algoritmos";
cout << "\n [6] Fundamentos da informática";
cout << "\n [7] Análise e projeto de sistemas";
cout << "\n [8] Design digital";
cout << "\n -=-=-=-=-=-=-=-=-=-=-=-=-=-=-\n >>> ";
cin >> resp;
while (cin.fail()){
cin.clear();
cin.ignore();
cout << ">>> ";
cin >> resp;
}
if (resp == 1){
pw();
}else if (resp == 2){
bd();
}else if (resp == 3){
ltt();
}else if (resp == 4){
tp();
}else if (resp == 5){
pa();
}else if (resp == 6){
fi();
}else if (resp == 7){
aps();
}else if (resp == 8){
dd();
}system("cls");
}
}
int main(){
string user, pass;
cout << "Informe o usuário\n> ";
cin >> user;
cout << "[!] Checking user...\n";
if (user == "qu1z"){
cout << "[OK]\n";
cout << "Informe a senha\n> ";
cin >> pass;
cout << "[!] Checking pass...\n";
if (pass == "runqu1z"){
execute();
}else{cout << "[!] Disconnected\n";}
}else{
cout << "[!] Disconnected\n";
}
system("pause");
return 0;
}