Computer Science Canada

Needing some help about record

Author:  lee_Amilghty [ 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?!!!

Author:  vagyb [ Tue May 25, 2004 7:32 pm ]
Post 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

Author:  omni [ Tue May 25, 2004 7:33 pm ]
Post subject: 

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

Author:  vagyb [ Tue May 25, 2004 7:33 pm ]
Post 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]


: