Menu if facil
BY
JOSE MIGUEL BRICEÑO
WWW.M3TALIJOX.ES.TL
JOSE MIGUEL BRICEÑO
WWW.M3TALIJOX.ES.TL
/* un mini menu creaso parecido al anterior pero este lleva else */
// pueden quitarles los else i dejarlos como solo if so kieren
#include<iostream.h>
#include<windows.h>
void main()
{
int op;
do
{
system("cls");
cout<<"n n Seleccione opcion, pero porfavor no ingrese caracter osea letras daa!
cout<<"n1.-Firma";
cout<<"n2.-Webpage";
cout<<"n3.-Mala-cara";
cout<<"n4.-Burla";
cout<<"n5.-Corazon";
cout<<"n0.-Salida n";
do
{
cin>>op;
}
while(op != 1 && op != 2 && op != 3 && op != 4 && op != 5 && op != 0);
if(op==1)
{
cout<<"n t t **********************************";
cout<<"n t t * ******** ****_ _**** *";
cout<<"n t t * ****** **** - - **** *";
cout<<"n t t * ** **** * **** *";
cout<<"n t t * ** **** **** *";
cout<<"n t t * ** **** **** *";
cout<<"n t t * ** ** **** **** *";
cout<<"n t t * ***** ** **** **** *";
cout<<"n t t * *** ** **** **** *";
cout<<"n t t **********************************";
}
else
{
if(op==2)
{
cout<<"n t t **********************************";
cout<<"n t t * * * *";
cout<<"n t t * * WWW.M3TALIJOX.ES.TL * *";
cout<<"n t t * * JOZE-JOZZ * *";
cout<<"n t t * * * *";
cout<<"n t t **********************************";
}
else
{
if(op==3)
{
cout<<"n t t t ////////////// ";
cout<<"n t t t | ----_ ----_ |";
cout<<"n t t t | |";
cout<<"n t t t | |";
cout<<"n t t t | __ |";
}
else
{
if(op==4)
{
cout<<"n" "t" "t * ***** * ";
cout<<"n" "t" "t * * * * ";
cout<<"n" "t" "t * * * * ";
cout<<"n" "t" "t * * ***** ***";
}
else
{
if(op==5)
{
cout<<"n" "t" "t .-- . . --. ";
cout<<"n" "t" "t * ******V****** * ";
cout<<"n" "t" "t * --************ **---- * _ ";
cout<<"n" "t" "t * --*********** **---- * ";
cout<<"n" "t" "t * ********* ** * ";
cout<<"n" "t" "t '********* + ";
cout<<"n" "t" "t ******* + ";
cout<<"n" "t" "t ***** ";
cout<<"n" "t" "t *** + ";
cout<<"n" "t" "t V + ";
cout<<"n" "t" "t + ";
}
}
}
}
}
}
while(op!=0);
}