View Single Post
  #4 (permalink)  
Old 05-09-2008, 06:15 PM
MrPickle's Avatar
MrPickle MrPickle is offline
Sr. Programmer
Join Date: Nov 2007
Location: England, Lincolnshire
Posts: 254
iTrader: (0)
MrPickle is on a distinguished roadMrPickle is on a distinguished roadMrPickle is on a distinguished road
From what I can gather you're trying to go through a multidimensional array and check if any of the points are equal to "#" or blank.

If you know the size of the array then it would probably be easier to use 2 for loops.
eg:
Code:
for(int a = 0; a < r; a++)
{
   for(int b = 0; b < c; b++)
   {
      //Perform whatever checks here
   }
}
I think this way would be faster too, don't quote me on that though.

__________________

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!
Reply With Quote