Re: Gets and chomp method question
- From: Justin Collins <collinsj@xxxxxxxxxxxx>
- Date: Tue, 28 Mar 2006 08:07:35 +0900
Justin Collins wrote:
paul.denlinger@xxxxxxxxx wrote:I'm working through the "Gets and chomp method" section of Learn to
Program on http://pine.fm/LearnToProgram/?Chapter=04
I have a problem. I have entered the strings:
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 + '. :)'
into the text editor, and when I run it, it of course runs up to the
second line. At this stage, I'm supposed to get a question, "What's
your name?" and respond by typing in my name.
When I run it, the command box opens, and just stays there. I have
tried typing my name in there, but nothing happens, and I cannot get
the code to continue running.
Where am I supposed to type in my name, and what am I supposed to type
to get the code running through the remaining lines of code?
Thank you.
Where are you running the program from? Inside some IDE? From the command line? In Windows?
-Justin
Nevermind, I see you are running Scintilla and I don't know anything about that! :)
-Justin
.
- Follow-Ups:
- RE : Gets and chomp method question
- From: Guillaume Benny
- RE : Gets and chomp method question
- References:
- Gets and chomp method question
- From: paul.denlinger@xxxxxxxxx
- Re: Gets and chomp method question
- From: Justin Collins
- Gets and chomp method question
- Prev by Date: Re: Gets and chomp method question
- Next by Date: Re: Suppressing printing of evaluated expressions in irb
- Previous by thread: Re: Gets and chomp method question
- Next by thread: RE : Gets and chomp method question
- Index(es):
Relevant Pages
|