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

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




PostPosted: Tue Nov 04, 2003 10:13 pm   Post subject: get the values??

Sad how could i get the values from the main program when i am using the procedure?? Question


i really don't know how to do that.
Sponsor
Sponsor
Sponsor
sponsor
Homer_simpson




PostPosted: Tue Nov 04, 2003 10:23 pm   Post subject: (No subject)

code:
procedure times2(i:int)
put i*2
end times2


%main program...
var number:int
number:=4
times2(number)
Tony




PostPosted: Tue Nov 04, 2003 11:27 pm   Post subject: (No subject)

you should read a tutorial on procedures. It talks about arguments and how to use them.

There're also globab variables, but turing is kind of sketchy on everything, so I donno... Confused
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
appling




PostPosted: Wed Nov 05, 2003 12:34 pm   Post subject: (No subject)

thanks a lot..... i'm so happy that u can help me.
Tony




PostPosted: Wed Nov 05, 2003 4:07 pm   Post subject: (No subject)

mail me a check to pay for next month's hosting Laughing

I'm j/k, you dont have to do that... Dan pays for it Twisted Evil
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
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: