Computer Science Canada Flexible array help |
Author: | Zasalamel [ Fri Mar 05, 2010 7:02 pm ] | ||
Post subject: | Flexible array help | ||
What is it you are trying to achieve? a box drawing program What is the problem you are having? it will not draw the boxes Describe what you have tried to solve this problem i have tried moving for loops around Post any relevant code (You may choose to attach the file instead of posting the code if it is too long)
Please specify what version of Turing you are using 4.1.1 |
Author: | Superskull85 [ Fri Mar 05, 2010 7:41 pm ] | ||
Post subject: | Re: Flexible array help | ||
From what I understood you want a program that will draw a on the screen, and that each box would be store in memory. Is this right? If so then the problem is that you are overwriting the information for every box in memory, and that you are constantly setting the upper bound of the array to one (hence only having one box. What you want to do is something like the following:
Hope that helped. |