forked from ZgzInfinity/Vortimux
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgraficos.h
96 lines (73 loc) · 2.81 KB
/
graficos.h
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
91
92
93
94
95
96
/*
* ----------------------------------
* Autor: Ruben Rodriguez Esteban ---
* Fecha: 2-4-19 --------------------
* ----------------------------------
*/
/*
* Fichero de interfaz del modulo graficos
*/
#ifndef GRAFICOS_H
#define GRAFICOS_H
#include <iostream>
#include <conio.h>
#include <unistd.h>
using namespace std;
const int ESPACIADO = 4;
const int ESQUINA_SUP_IZQ = 218;
const int ESQUINA_SUP_DER = 191;
const int ESQUINA_INF_IZQ = 192;
const int ESQUINA_INF_DER = 217;
const int LINEA_HORIZONTAL = 196;
const int LINEA_VERTICAL = 179;
const int TRI_LAT_IZQ = 195;
const int TRI_LAT_INF = 193;
const int TRI_LAT_SUP = 194;
const int TRI_LAT_DER = 180;
const int CRUZ = 197;
// Retardo del bucle de carga
const int RETARDO = 20000;
const int TECLA_ENTER = 13;
/*
* Pre: ---
* Post: Ha mostrado por pantalla el nombre del generador y
* validador de tarjetas de credito
*/
void introduccion();
/*
* Pre: ---
* Post: Ha presentado por pantalla el menu de opciones
* disponibles para el usuario
*/
void presentarMenu();
/*
* Pre: ---
* Post: Ha mostrado por pantalla las posibles
* tarjetas que se pueden generar
*/
void presentarTarjetas();
/*
* Pre: ---
* Post: Ha mostrado por pantalla el mensaje "CARGANDO" seguido de una
* secuencia de puntos
*/
void cargando();
/*
* Pre: ---
* Post: Ha escrito por pantalla una cuadricula con el siguiente formato de
* estilo mostrado a continuacion:
*
* ┌────┬────┬────┬────┬────┬────┬────┬────┬────┬────┬────┬────┬────┬────┬────┐
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
* │ 1 │ 2 │ 3 │ 4 │ 5 │ 6 │ 7 │ 8 │ 9 │ 10 │ 11 │ 12 │ 13 │ 14 │ 15 │
* ├────┼────┼────┼────┼────┼────┼────┼────┼────┼────┼────┼────┼────┼────┼────┤
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
* └────┴────┴────┴────┴────┴────┴────┴────┴────┴────┴────┴────┴────┴────┴────┘
*
* Cada uno de los digitos de la tabla indica el caracter de la tarjeta de credito que
* se va a validar
*/
void dibujarCuadricula();
#endif