Munkey01...
To get back to the first case for a moment if I could... You seem to have missed the point that you are declaring the array wrong (in the case of your original post with strings)...
It needs to be like this
char board[3][3][4]
You have 3 Rows, and 3 columns, each containing a 4 character string (including the 0 terminator).
The way that you had declared it only allowed for one character in each cell of the matrix. You need to allocate space for the 4 characters.
In the case of ints, as Salem has written it, each digit is stored in one int....
To do this with char you would be limited to 1 char per cell...
Code:char board[3][3] = {{'1','2','3'},{'4','5,''6,'},{'7','8','9'}};



LinkBack URL
About LinkBacks




But whenever I call Display() the program gets caught in an infinate loop. I cannot figure out why it is catching
Any ideas? Plus I am not sure if this would even work, but I cannot tell when I have a whole bunch of numbers flying around.