wtd, ruby questions
Author |
Message |
wtd
|
Posted: Tue Nov 09, 2004 10:59 pm Post subject: (No subject) |
|
|
dsantamassino wrote: wtd wrote: You'll have to type something and hit enter before the program should terminate.
OK i got it.
Now, do you see what I was saying about "!" ending up on a new line? |
|
|
|
|
|
Sponsor Sponsor
|
|
|
dsantamassino
|
Posted: Wed Nov 10, 2004 6:28 am Post subject: (No subject) |
|
|
wtd wrote: dsantamassino wrote: wtd wrote: You'll have to type something and hit enter before the program should terminate.
OK i got it.
Now, do you see what I was saying about "!" ending up on a new line?
yeah i see what you was saying. well i have to go to work soon here. I will be back later.. so since i got that whats my next step?? |
|
|
|
|
|
wtd
|
Posted: Wed Nov 10, 2004 4:02 pm Post subject: (No subject) |
|
|
Ask a user for their first, middle, and last names. Then greet the user with their full name.
Example run:
code: | C:\> ruby greet.rb
Your first name is?
John
Your middle name is?
Ryan
Your last name is?
Doe
Hello, John Ryan Doe! |
|
|
|
|
|
|
jamonathin
|
Posted: Thu Mar 31, 2005 12:44 pm Post subject: (No subject) |
|
|
I know you're probabily gonna think i'm retarded, but how do you run ruby? Like I started looking at your (wtd's) tutorial on puts and stuff, and i cant figure out how to run the thing . . . . . |
|
|
|
|
|
Tony
|
Posted: Thu Mar 31, 2005 12:49 pm Post subject: (No subject) |
|
|
irb works wonderfully. Actually look over this topic |
|
|
|
|
|
jamonathin
|
Posted: Thu Mar 31, 2005 12:51 pm Post subject: (No subject) |
|
|
Oh, duh! Ok thanks. |
|
|
|
|
|
jamonathin
|
Posted: Thu Mar 31, 2005 3:36 pm Post subject: (No subject) |
|
|
Ummm... i have another question. Do i use the SciTE to program? Because when i save it, it saves as like some unkown file type, not a ruby program. But i installed it properly and everything because the sample programs work. |
|
|
|
|
|
wtd
|
Posted: Thu Mar 31, 2005 3:41 pm Post subject: (No subject) |
|
|
jamonathin wrote: Ummm... i have another question. Do i use the SciTE to program? Because when i save it, it saves as like some unkown file type, not a ruby program. But i installed it properly and everything because the sample programs work.
You can use any text editor you'd like. Ruby programs are simply plain text with a ".rb" extension.
On Wndows I like TextPad. |
|
|
|
|
|
Sponsor Sponsor
|
|
|
Hikaru79
|
Posted: Sat Apr 02, 2005 7:04 pm Post subject: (No subject) |
|
|
Jamonathin, if you want to use some sort of editor/IDE instead of compiling by hand (which is reccomended for now, but anyway), you should check out FreeRIDE. Works equally fine in Windows and Linux. |
|
|
|
|
|
|
|