Forum: RForum Ruby help

Posted by Emma Pidre (nznz)
on 2009-05-11 08:31
Hi, my name is Emmanuel, im from argentina.
Sorry for my english :P

I have a problem with ruby, im very new in this.

i try to execute this code:

 1 # gets y chomp
 2
 3 puts "En que ciudad vives?"
 4
 5 # STDOUT - constante global - la salida estándar del programa
 6 # flush - vacía los datos almacenados temporalmente hacia el
 7 # sistema operativo
 8 STDOUT.flush
 9
10 # gets - regresa una cadena y el caracter '\n'
11 # chomp - elimina el caracter  '\n'
12 ciudad = gets.chomp
13 puts "La ciudad es " + ciudad
14
15 # para saber en qué objeto te encuentras
16 puts self

but when de windows command open, and i have to write the name of my
city, i cant write, my keyboard dosnt write, and the window remain
blank.

thank you :)
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.