fugas2
Registrado: 15 Mar 2007 Mensajes: 10
| Publicado: 16/03/2007 5:18 am | | | Título: ayuda |
| tengo este compilador para window pero cuando intento compilar este algoritmo. #include <stdio.h> #include <time.h> #include <stdlib.h> int main(void) randomize( ); { int a,b,intentos; char c; puts ("ADIVINA UN NUMERO \n"); puts ("------- -- ------ \n"); do { intentos=0; a= ramdom(101); do { intento ++; puts ("INTRODUZCA UN NUMERO \n"); puts ("---------- -- ------ \n"); scanf ("%d", &b); if (a>b) { puts ("ES MAYOR"); } else if (a<b) { puts ("ES MENOR"); } else if (a=b) { { puts ("ES IGUAL \n"); printf ("LO HAS CONSEGUIDO, LO HAS INTENTADO %d VECES \n", intentos); puts ("-- --- ----------- -- --- --------- -- -----"); } else { puts ("NO ES UN NUMERO, INTRODUCE UN NUMERO CORRECTO"); intentos --; } } while (a!=b) puts ("¿QUIERES JUGAR DE NUEVO S-N? \n"); scanf ("%c",&c); } while (b=='s'); break; }
me sale siempre un error en randomize () me podriais decir que falla gracias de antemano |
|