Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 wtd, ruby questions
Index -> Programming, Ruby -> Ruby Help
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
wtd




PostPosted: 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. Smile


OK i got it.


Now, do you see what I was saying about "!" ending up on a new line?
Sponsor
Sponsor
Sponsor
sponsor
dsantamassino




PostPosted: 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. Smile


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




PostPosted: 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




PostPosted: 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 Confused . . . . .
Tony




PostPosted: Thu Mar 31, 2005 12:49 pm   Post subject: (No subject)

irb works wonderfully. Actually look over this topic
jamonathin




PostPosted: Thu Mar 31, 2005 12:51 pm   Post subject: (No subject)

Oh, duh! Ok thanks. Smile
jamonathin




PostPosted: 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. Confused
wtd




PostPosted: 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. Confused


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
Sponsor
sponsor
Hikaru79




PostPosted: 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.
Display posts from previous:   
   Index -> Programming, Ruby -> Ruby Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 9 of 9  [ 129 Posts ]
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9
Jump to:   


Style:  
Search: