-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
63 lines (61 loc) · 2.04 KB
/
main.cpp
File metadata and controls
63 lines (61 loc) · 2.04 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
#include "Controlador.h"
#include "VGeneral.h"
#include <string>
#include <iostream>
int main()
{
int valor,valor2;
string ced;
Controlador c;
VGeneral vg;
do{
vg.Limpiar();
cout<<"=============================================================================="<<endl;
cout<<"----------------------------- MENU DE OPCIONES -----------------------------"<<endl;
cout<<"=============================================================================="<<endl;
cout<<"\n1-) Agregar cliente a la cola"<<endl;
cout<<"2-) Pasar cliente a taquilla "<<endl;
cout<<"3-) Mostrar cola"<<endl;
cout<<"4-) Total de clientes en cola"<<endl;
cout<<"5-) Mostrar prioridades"<<endl;
cout<<"6-) Salir\n"<<endl;
cout<<"=============================================================================="<<endl;
valor= vg.LeerValidarNro("\n Opcion seleccionada : ",1,7);
switch (valor)
{
case 1:
c.IncluirClnts();
break;
case 2:
c.CurrentCustomer();
break;
case 3:
vg.Limpiar();
cout<<"=============================================================================="<<endl;
cout<<"--------------------------- SUB-MENU DE OPCIONES ---------------------------"<<endl;
cout<<"=============================================================================="<<endl;
cout<<"1-) Imprimir cola por prioridad"<<endl;
cout<<"2-) Imprimir cola por orden de llegada"<<endl;
cout<<"3-) Imprimir ambas"<<endl;
cout<<"4-) Atras\n"<<endl;
valor2= vg.LeerValidarNro(" Opcion seleccionada : ",1,4);
if(valor2==1)
c.Imprimir(valor2);
else if(valor2==2)
c.Imprimir(valor2);
else if(valor2==3)
c.Imprimir(valor2);
break;
case 4:
cout<<"\n Total de clientes en cola hasta el momento: "<<c.Tolal()<<"\n "<<endl;
vg.Pausa();
break;
case 5:
c.ShowPrid();
break;
default:
break;
}
}while(valor!=6);
return 0;
}