Help with 3D arrays?!
Hi, I'm trying to make an array for my class but I just can't get through it :frown:.
I am supposed to ask for the position in the array and put a 0 in there by itself, cycle the process until the user writes 'x'. If the position has already been filled, show an error message. It has to be a 10x10 array but I don't know how to do it! Help! :confused:
So what are you having trouble with?
All you need are things like
array[row][col] = 0;
if ( array[row][col] == 'X' )
My thoughts exactly.
Originally Posted by itsme86
I'll give you some help with 3D arrays. Don't use them. There are far better data structures available in .NET that will give you the same functionality.