Computer Science Canada procedure with an array |
Author: | Ashi_Mashi3 [ Sat Feb 05, 2005 12:02 pm ] |
Post subject: | procedure with an array |
Hi, thank you for your excellent website...i have a problem....i want to make an array inside a procedure..i guess it should be like this: procedure test (my_array : 1 .. 15 of string) put my_array (1) end test now...how should i call the procedure? thank you |
Author: | Ashi_Mashi3 [ Sat Feb 05, 2005 12:12 pm ] | ||
Post subject: | Another Question! | ||
by the way..i want to control a 7:5 dotmatrix display...so, i need a different parallleput for everyone of the LEDs...what's the best way to do this? ... i did it like this....but, it would be so long and so boring! so, i thought about maybe using an array in a procedure and call it whenever i want....to reduce the lines...but, i dont think that's a good idea either...anyway, here's my code:
thanks agian! |
Author: | person [ Sat Feb 05, 2005 2:50 pm ] |
Post subject: | |
procedure a var str : array 1..15 of string for x:1..15 str (x) end for end a |
Author: | Bacchus [ Sat Feb 05, 2005 3:09 pm ] | ||
Post subject: | |||
no their talking about a way to put an array into a procedure as a parameter, if proc test(x:array 1..15 of string) works then when you try calling it try
|