<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>saludos, utilizo windos 7 con Borland c++, adjunto codigo d lo q he estado probando.<br><br>Ncsito hacer un menu d opciones utilizando switch, mientras no se teclee opcion d salida q mantnga el ciclo. En caso d ingresar letras q dvuelva el focus a la variable.<br><br>Gracias<br><br><hr>From: ronaldlopezmartinez@hotmail.com<br>To: eley46@gmail.com; diegoartesanal@gmail.com<br>Subject: AYUDA EN C++<br>Date: Sun, 5 Jun 2011 14:42:37 -0600<br><br><style>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Tahoma;}

</style>


Veo q t reciben los correso en c++,<br><br>pero a mi no m dan respuesta, q asunto tienes q enviar?<br><br>a ver si tu m puedes ayudar:<br>tngo un codigo en c++,<br>estoy validando numeros, ya ksi funcio pero al momento d ingresar letras ya no m retorna el focus a la variable<br><br>int Menu() {<br> clrscr();  //limpiar panta<br> //int num = 0;<br><br> int op;<br> char num[100]; //cadena para que el usuario ingrese la opcion<br> //char *num;<br><br><br> printf("MENU PRINCIPAL\n");<br> printf("1.\tVectores\n");<br> printf("2.\tMatrices\n");<br> printf("7.\tSalida\n");<br> printf("\nIngrese su Opcion: "); scanf("%s", num);<br> //printf("Ingrese su Opcion: ");<br><br> op=atoi(num); //permite validar el ingreso numerico en la variable num<br><br> //while (op != 7)<br> //{<br>     switch (op)<br>     {<br>         case 1: //case 'A':<br>           Vectores();<br>              break;<br>       case 2: //case 'B':<br>           Matrices();<br>          break;<br>        case 7:<br>          Salida();<br>         break;<br>       //default:<br>           //printf("Ingrese un valor correcto...");<br>          //printf("\nVerifique BLOCK MAYUS");<br>           //break;<br>      } //FIN switch<br>   //}//FIN while<br><br>   return 0;<br>}//FIN funcion Menu<br><br><p align=center></p><p align=center><strong><a href="http://www.40diasdeperdon.com/" target="_blank"></a></strong></p><p align=center><font style="" color="#0070c0"><b><font style=""><strong><font style="font-size:12pt" size=3>Ronald López</font></strong></font></b></font></p><p align=center><font style="" color="#0070c0"><b><font style=""><strong>LIGA GUATEMALTECA DEL CORAZON</strong></font></b></font></p><p align=center><font style="" color="#0070c0"><b><font style=""><strong>8av. 1-110 Cantón La Otra Banda Mazatenango Such.</strong></font></b></font></p><p align=center><strong><font style="" color="#0070c0"><b><font style=""><font style="background-color:rgb(255, 255, 0)">7867</font>-9260/9461/9644/<font style="background-color:rgb(255, 255, 0)">9928 </font>ext 108.  <font style="background-color:rgb(255, 255, 0)">Fax ext 109</font></font></b></font><font style="" color="#00b050"><font style="font-size:16pt" size=4><b><br></b></font></font></strong></p><p align=left><strong></strong><font style="" color="#00b050"><b><font style="font-size:16pt" size=4><strong><font style="font-size:12pt"><<Tu crecimiento determina quién eres.</font></strong></font></b></font></p><p align=left><font style="" color="#00b050"><b><font style="font-size:16pt" size=4><strong><font style="font-size:12pt">Quien eres determina a quién atraes.</font></strong></font></b></font></p><p align=left><font style="" color="#00b050"><b><font style="font-size:16pt" size=4><strong><font style="font-size:12pt">A quién atraes determina el éxito de tu organización." <br></font></strong></font></b></font></p><p align=left><font style="" color="#00b050"><b><font style="font-size:16pt" size=4><strong><font style="font-size:12pt">John C. Maxwell - Del Libro: Las 21 Cualidades Indispensables de un Líder. >></font></strong></font></b></font></p><br><br>                                      
                                          </body>
</html>