Documentos de Académico
Documentos de Profesional
Documentos de Cultura
#include <cstdlib>
#include <iostream>
#include <stdio.h>
#include <string.h>
/* -----------------------------------------------------------------------------|
|
|
| Autor:
|
| Version: 1.0
|
| ---------------------------------------------------------------------------*/
int menu(){
int op = 0;
system("cls");
if ( c == 'h' ) return 1;
if ( c == 'i' ) return 2;
if ( c == 'l' ) return 3;
if ( c == 'e' ) return 4;
if ( c == '(' ) return 5;
if ( c == ')' ) return 6;
if ( c == '{' ) return 7;
if ( c == '}' ) return 8;
else {
exit (EXIT_FAILURE);
{ /* w h i l e ( ) { } /
/* qo */ { 3, 6, 6, 1, 6, 6, 6, 6, 6 },
/* q1 */ { 6, 6, 6, 2, 6, 6, 6, 6, 6 },
/* q2 */ { 6, 6, 6, 16, 6, 6, 6, 6, 6 },
/* q3 */ { 6, 6, 4, 6, 6, 6, 6, 6, 6 },
/* q4 */ { 6, 5, 6, 6, 6, 6, 6, 6, 6 },
/* q5 */ { 6, 16, 6, 6, 6, 6, 6, 6, 6 },
/* q6 */ { 6, 6, 6, 6, 6, 6, 6, 6, 6 },
};
// procesa la cadena w
for ( i = 0; i < (int)strlen( w ); i++ ) {
int opc=0;
do{
switch (opc){
int ace=0;
cout<< "-----------"<<endl;
fflush( stdin );
gets( w );
ace= reconocer_Correo( w );
if(ace==1){
}else{
system ("pause");
}break;
}while(opc!=0);
return 0;
|SENTENCIAS MENSAJE
|WHILE
|MENSAJE
R -> E < E
|E > E
|E > E
|E >= E
|E <= E
|E == E
E -> E + E
|E - E
|E * E
|E / E
| (E)
|IDENTIFICADOR
|NUMERO
3. sentencia valida
System.out.println( STRING )
while(j == 1){
System.out.println( STRING )
while( c >j )
System.out.println( STRING )
4. sentencia no valida
System.out.println( STRING )
while(j == 1){
while( c >j )
System.out.println( STRING )
Condicion-> R;
sentencia -> E;
<while_stmt> ::= while <condicion de finalizacion> <expresion> < SENTENCIAS > | < STRING(stmts) >