
-----------------------------------
appling
Tue Nov 04, 2003 10:13 pm

get the values??
-----------------------------------
:( how could i get the values from the main program when i am using the procedure?? :?: 


i really don't know how to do that.

-----------------------------------
Homer_simpson
Tue Nov 04, 2003 10:23 pm


-----------------------------------
procedure times2(i:int)
put i*2
end times2


%main program...
var number:int
number:=4
times2(number)

-----------------------------------
Tony
Tue Nov 04, 2003 11:27 pm


-----------------------------------
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... :?

-----------------------------------
appling
Wed Nov 05, 2003 12:34 pm


-----------------------------------
thanks a lot..... i'm so happy that u can help me.

-----------------------------------
Tony
Wed Nov 05, 2003 4:07 pm


-----------------------------------
mail me a check to pay for next month's hosting :lol:

I'm j/k, you dont have to do that... Dan pays for it :twisted:
