La Ultima Esencia
Noticias:
 
*
Bienvenido(a), Visitante. Por favor, ingresa o regístrate. Diciembre 04, 2008, 21:39:55


Ingresar con nombre de usuario, contraseña y duración de la sesión


Páginas: [1]
  Imprimir  
Autor Tema: Con cariño un generador de quinielas en eiffel!!!1  (Leído 474 veces)
0 Usuarios y 1 Visitante están viendo este tema.
pianista
Administrador

Desconectado Desconectado

Mensajes: 2623


« : Enero 08, 2008, 12:39:05 »

Código
GeSHi (eiffel):
indexing
  Description: "Generador de quinielas automatico para laultimaesencia.com";
 
class QUINIELA
 
creation
  make
 
feature
 
  make is
     local
        t: MICROSECOND_TIME; enter: INTEGER; numeros: ARRAY[INTEGER]
     do
        !!numeros.make(1, 0)
        io.put_string("Bienvenido al generador automatico de quinielas%N")
        io.put_string("Por favor pulse la tecla enter cuando quiera 15 veces")
        from
           enter := 15
        until
           enter = 0
        loop
           t.update
io.put_string("Quedan " + enter.to_string + " enters%N")
           io.read_line
           t.update
           numeros.add_last(t.microsecond)
           enter := enter - 1
        end
        from
           enter := 1
        until
           enter = 16
        loop
           if numeros.item(enter) \\ 2 = 0 then
              io.put_string("1")
           else
              if numeros.item(enter) \\ 3 = 0 then
                 io.put_string("2")
              else
                 io.put_string("X")
              end
           end
           enter := enter + 1
        end
        io.put_string("%N")
     end
 
end -- class QUINIELA
 
Created by GeSHI 1.0.7.20
« Última modificación: Enero 08, 2008, 12:45:57 por pianista » En línea
paulditty
Moderador Global

Desconectado Desconectado

Mensajes: 1079



« Respuesta #1 : Enero 08, 2008, 16:15:10 »

A mi me ha llegado al corazón...  Grin Grin Grin

Teníamos que crear una cuenta para recaudar fondos y así hacer apuestas múltiples todos los usuarios del foro laugh

Saludos.
En línea

"May you be in heaven half an hour before the Devil knows you're dead."
Elía
Visitante
« Respuesta #2 : Marzo 16, 2008, 12:19:14 »

Código
GeSHi (eiffel):
io.put_string("Quedan " + enter.to_string + " enters%N")
 
Created by GeSHI 1.0.7.20

¿Y ese spanglish?
En línea
Páginas: [1]
  Imprimir  
 
Ir a:  


Powered by SMF 1.1.6 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks


AFILIATE AQUI
Creative Commons License
Esta obra está bajo una licencia de Creative Commons.