Thread: 2D Array help!
View Single Post
  #4 (permalink)  
Old 11-27-2009, 01:04 AM
Fubarable's Avatar
Fubarable Fubarable is online now
Moderator
 
Join Date: Jun 2008
Posts: 6,452
Rep Power: 8
Fubarable is on a distinguished road
Default
I don't see that you're ever incrementing y or initializing x at the beginning of the method, and just by using back of the envelope calculations, it looks as if your x will march off way to the right.

You may want to sit with pencil and paper and work out your math a bit more here.
__________________
When posting code, please use code tags so that your code is readable. To do this, place the tag [code] before your block of code and [/code] after your block of code.
How to use Code Tags
Reply With Quote