-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
51 lines (44 loc) · 1.41 KB
/
main.cpp
File metadata and controls
51 lines (44 loc) · 1.41 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
/*
Nombre: main.cpp
Autor: Equipo Warning
Fecha: 01 de Junio del 2019
Descripción: Archivo main. Aquí se presenta el menú del programa del juego BlackJack21. Llama al Menú Principal y según su
elección: Jugar, Instrucciones, Créditos y Opción Salir, dependiendo lo que escoja el usuario
*/
#include <iostream>
#include <cstdlib>
#include "ManipMenu.h"
#include "ManipConsola.h"
#include "Juego.h"
using namespace std;
//Función main *************************************************************************************************************
int main()
{
int eleccion;
//Creamos una variable que servirá para repetir el ciclo del menú
bool repite = true;
do{
EstableceColor(NEGRO, BLANCO);
system("cls");
MenuPrincipal();
eleccion = ElegirOpcion(POS_Y, NUM_OPC);
system("cls");
switch(eleccion){
case JUGAR:
IniciarJuego();
break;
case INSTRUCCIONES:
menuInstrucciones();
break;
case CREDITOS:
menuCreditos();
break;
case SALIR:
//Si el usuario indica que saldrá, se cierra el programa
repite = false;
break;
}
}while(repite);
return 0;
}
//FIN Función main ***********************************************************************************************************