Forum: Ruby help

A79117bacb77d13f936a6d125d128b77?d=identicon&s=25 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
 3 puts "En que ciudad vives?"
 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
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
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

thank you :)
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.