Skip to content

Commit

Permalink
inserido apresentacao pdf
Browse files Browse the repository at this point in the history
  • Loading branch information
joseevilasio committed Jul 3, 2023
1 parent 25f90bb commit 598bb83
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
Binary file added docs/ProjetoQuiz.pdf
Binary file not shown.
3 changes: 2 additions & 1 deletion function_signin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,11 @@ int signin(){

if (validarEmail(usuario.email) == true){
limparTela();
cin.ignore();
cout << "___________________________________________" << endl;
cout << " O email '" << usuario.email << "' já está cadastrado." << endl;
cout << " Tente novamente ou faça login!" << endl;
cout << "¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯";
cout << "¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯" << endl;
pressione("continuar");
return 1;
}
Expand Down
21 changes: 12 additions & 9 deletions function_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ void pressione(string texto) {
void load(){
//A função imprime na tela loading de 0% até 100%
int totalTicks = 20;
int numero = 2;

for (int i = 0; i < totalTicks; ++i)
{
for (int i = 0; i < totalTicks; ++i){
cout << "\r[";

for (int j = 0; j <= i; ++j)
Expand All @@ -56,8 +56,11 @@ void load(){

cout << "] " << (i + 1) * 5 << "%";
cout.flush();
sleep(0.999);

sleep(numero);
if (numero == 2) {
numero = 0.5;
}
}

cout << endl;
Expand Down Expand Up @@ -145,12 +148,11 @@ string calcularEspaco(int tamanho) {



void tempo(){
int tempo(){
//A função imprime na tela o tempo
int segundos = 4;
int segundosFinais = segundos / 2;
char ch;

int resposta;

for (int cont = segundos; cont > -1; cont--){

Expand All @@ -167,12 +169,13 @@ void tempo(){
cout << "\033[2K"; // Limpa a linha atual
cout << "\033[0G"; // Retorna para a coluna inicial
}

}
}

cout << resetCor();
cout << ">>> ";
cin >> resposta;

ch = getchar();
return resposta;
}

void cabecalho(string texto){
Expand Down

0 comments on commit 598bb83

Please sign in to comment.