Está en la página 1de 2

int op=1,pos=1;

do{
do
clrscr();
{
if(op==1)
{
textcolor(3);
cprintf("\n 1.Nuevo");
textcolor(BLACK);
}
if(op!=1)printf("\n 1.Nuevo");
if(op==2)
{
textcolor(3);
cprintf("\n 2.Agregar Clientes a un Archivo Existente");
textcolor(BLACK);
}
if(op!=2)printf("\n 2.Agregar Clientes a un Archivo Exis
tente");
if(op==3)
{
textcolor(3);
cprintf("\n 3.Mostrar Clientes");
textcolor(BLACK);
}
if(op!=3)printf("\n 3.Agregar Clientes a un Archivo Exis
tente");
if(op==4)
{
textcolor(3);
cprintf("\n 4.Cargar un Archivo");
textcolor(BLACK);
}
if(op!=4)printf("\n 4.Cargar un Archivo");
if(op==5)
{
textcolor(3);
cprintf("\n 5.Baja de Clientes");
textcolor(BLACK);
}
if(op!=5)printf("\n 5.Baja de Clientes");
if(op==6)
{
textcolor(3);
cprintf("\n 6.Actualizar Datos");
textcolor(BLACK);
}
if(op!=6)printf("\n 6.Actualizar Datos");
if(op==7)
{
textcolor(3);
cprintf("\n 7.Consultar Datos");
textcolor(BLACK);
}
if(op!=7)printf("\n 7.Consultar Datos");
if(op==8)
{
textcolor(3);
cprintf("\n 8.Unificar Base de Datos");
textcolor(BLACK);
}
if(op!=8)printf("\n 8.Unificar Base de Datos");
if(op==9)
{
textcolor(3);
cprintf("\n 9.Guardar");
textcolor(BLACK);
}
if(op!=9)printf("\n 9.Guardar");
if(op==10)
{
textcolor(3);
cprintf("\n 0.Salida");
textcolor(BLACK);
}
if(op!=10)printf("\n 0.Salida");
op=getche();
if(op==72)
{
pos=pos+1;
if(pos==11)
pos=1;
op=pos;
}
if(op==80)
{
pos=pos-1;
if(pos==0)
pos=10;
op=pos;
}
}while(op!=13);

También podría gustarte