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

Username:   Password: 
 RegisterRegister   
 Needing some help about record
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
lee_Amilghty




PostPosted: Tue May 25, 2004 6:57 pm   Post subject: Needing some help about record

can I put the record into a procedure and use the record which exist in the main procedure to call it?

how can i declare the variavbe?!!!
Sponsor
Sponsor
Sponsor
sponsor
vagyb




PostPosted: Tue May 25, 2004 7:32 pm   Post subject: (No subject)

um.. im kinda a noob in turing but is this what you mean?
code:

proc hello
put "hello everyone"
end hello



thats a basic procedure (i think) and whenever in ur program u want that procedure to work you basically do this.
EX.
code:

put "my name is bob"
hello
omni




PostPosted: Tue May 25, 2004 7:33 pm   Post subject: (No subject)

you mean pass records into procedures?
As for information about records, look up tutorial section
vagyb




PostPosted: Tue May 25, 2004 7:33 pm   Post subject: (No subject)

also to declare variables there are three kinds (that i know of). they are string (for text), int and real (for numbers).
for example

var name : string
put "what is your name?"
get name
put name

[/code]
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  [ 4 Posts ]
Jump to:   


Style:  
Search: