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

Username:   Password: 
 RegisterRegister   
 put?
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
colinrip666




PostPosted: Fri Jun 06, 2003 2:25 pm   Post subject: put?

what does put mean?????? Embarassed
Sponsor
Sponsor
Sponsor
sponsor
Martin




PostPosted: Fri Jun 06, 2003 2:47 pm   Post subject: (No subject)

Brand new to the programming scene, I take it Razz

All that put does is 'puts' some text onto the screen.

Text can include variables, strings as well as numbers

put "HELLO" puts 'HELLO' on the screen
put 5 puts '5' on the screen

put 3 + 7 puts '10' on the screen (3 + 7 = 10)
Mephi




PostPosted: Fri Jun 06, 2003 6:38 pm   Post subject: (No subject)

use quotes for exactly what you want on the screen, say u want 3 + 7 on the screen, then do
put "3 + 7"
but if u wanted to actually do 3+ 7 and output the answer dont use quotes, such as
put 3 + 7
which would output 10, and use commas to separate variables, like
put "Hi ", name, "!"
naoki




PostPosted: Fri Jun 06, 2003 8:00 pm   Post subject: (No subject)

or put : file, name
as a way of storing information into a textfile
Andy




PostPosted: Fri Jun 06, 2003 9:20 pm   Post subject: (No subject)

maybe you should read some of the tutorials??
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 5 Posts ]
Jump to:   


Style:  
Search: