-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMENU.cpp
More file actions
47 lines (38 loc) · 949 Bytes
/
MENU.cpp
File metadata and controls
47 lines (38 loc) · 949 Bytes
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
#include <iostream>
#include <stdio.h>
#include <windows.h>
#include "Clientes.h"
void MenuPrincipal(int);
void agregarCliente();
void listarCliente();
using namespace std;
void MENU()
{
system("cls");
int opc;
cout<<" Proyecto Hotel \n\n";
cout<<" ===== MENU ===== \n";
cout<<"| 1. Agregar Cliente |\n";
cout<<"| 2. Listar Clientes |\n";
cout<<"| 3. 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
switch(opc)
{
case 1:
agregarCliente();
break;
case 2:
system("cls");
cout<<"************ LIstas de usuarios ****************"<<endl<<endl;
listarCliente();
break;
case 3:
system("cls");
MenuPrincipal(opc);
break;
}
}