-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
49 lines (47 loc) · 1.59 KB
/
main.cpp
File metadata and controls
49 lines (47 loc) · 1.59 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
#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-) Registrar persona"<<endl;
cout<<"2-) Imprimir"<<endl;
cout<<"3-) Salir\n"<<endl;
cout<<"=============================================================================="<<endl;
valor= vg.LeerValidarNro("\n Opcion seleccionada : ",1,7);
switch (valor)
{
case 1:
vg.Limpiar();
c.IncluirPrsn();
break;
case 2:
vg.Limpiar();
cout<<"=============================================================================="<<endl;
cout<<"--------------------------- SUB-MENU DE OPCIONES ---------------------------"<<endl;
cout<<"=============================================================================="<<endl;
cout<<"1-) Imprimir en PREORDEN"<<endl;
cout<<"2-) Imprimir en INORDEN"<<endl;
cout<<"3-) Imprimir en POSTORDEN"<<endl;
cout<<"4-) Imprimir todo"<<endl;
cout<<"5-) Atras\n"<<endl;
valor2= vg.LeerValidarNro(" Opcion seleccionada : ",1,5);
if(valor2!=5)
c.Imprimir(valor2);
break;
default:
break;
}
}while(valor!=3);
return 0;
}