[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: A bit of help

seebs

5/18/2007 4:06:00 PM

In message <71a310f00cdb6c964d3985874131164a@ruby-forum.com>, Acoole Cooland writes:
>Ok say i was using this code using SciTE
>
>puts 'Hello there, and what\'s your name?'
>name = gets
>puts 'Your name is ' + name + '? What a lovely name!'
>puts 'Pleased to meet you, ' + name + '. :)'
>
>After i input my name in the gets, and press enter it just skips the
>rest of the program and closes it!
>
>Whats wrong?

What's wrong is that you're not fast enough to read the message before,
a microsecond or three later, the computer realizes that the program
has exited and closes the window.

-s