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

Username:   Password: 
 RegisterRegister   
 hello world
Index -> Programming, Ruby -> Ruby Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
dirwin




PostPosted: Thu Mar 24, 2005 8:29 pm   Post subject: hello world

hi
sorry i got another question sorry i just started working with ruby
i ran it and did the first code in the book which is a script that prints the words hello world on the screen Smile well atleast it is suppost to again sorry
i have inclosed a screeny of my problem and the page of the book i copyed it outa. what am i doing wrong?



rubyproblem002.bmp
 Description:
 Filesize:  848.32 KB
 Viewed:  2976 Time(s)

rubyproblem002.bmp


Sponsor
Sponsor
Sponsor
sponsor
wtd




PostPosted: Thu Mar 24, 2005 8:33 pm   Post subject: (No subject)

They can't be blamed for saying that is the easiest way to run Ruby code interactively, because at the time it likely was. Nowadays I'd suggest using irb.

code:
C:/> irb
irb(main):001:0> puts "Hello world"
Hello world
=> nil
irb(main):002:0>
dirwin




PostPosted: Thu Mar 24, 2005 8:51 pm   Post subject: (No subject)

omg it worked thank you so much Smile
my first code woohoo
wtd




PostPosted: Thu Mar 24, 2005 9:02 pm   Post subject: (No subject)

Congratulations. Smile
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 1 of 1  [ 4 Posts ]
Jump to:   


Style:  
Search: