-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
66 lines (52 loc) · 1.3 KB
/
main.cpp
File metadata and controls
66 lines (52 loc) · 1.3 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
#include <iostream>
#include <stdio.h>
#include <windows.h>
#include "Clientes.h"
void MENU();
using namespace std;
int MenuPrincipal(int);
int main()
{
int OP;
do
{
switch(MenuPrincipal(OP))
{
case 1: // PAGOS
{
system("cls");
MENU();
break;
} // FIN CASE 1 PRINCIPAL
////////////////////////////////////////////////////////////////
case 2: // SALIDA
{
// SalidaPrograma();
return 0;
break;
} // FIN CASE 4 PRINCIPAL
////////////////////////////////////////////////////////////////
default: // CUALQUIER OPCION FUERA DE MENU
{
// DEFAULT();
break;
} // FIN CASE DEFAULT
}// FIN CASES PRINCIPAL
////////////////////////////////////////////////////////////////
}
while(OP!=2);
return 0;
}
int MenuPrincipal(int opc)
{
cout<<" Proyecto Hotel \n\n";
cout<<" ===== MENU =====\n";
cout<<"| 1. Clientes |\n";
cout<<"| 2. Salir |\n";
cout<<" ----------------\n\n";
cout<<"Opcion: ";
cin>>opc; // Almacena opcion del menú principal
fflush(stdin); // Limpieza de buffer entrada
fflush(stdout); // Limpieza buffer salida
return opc;
};