I'm learning how to use arrays in c++ with the Practical C++ Programming
book from O'Reilly but now I have run into a problem.
Im working with Multidimensional arrays ie, n
. Im trying to make a 3*3 grid that displays any number from 0 - 9 but it's not allowed to have any of the same number. I have managed to get it to check each number in the different rows and columns. So if I have 3 in n then the other numbers in row n[...] can't be a 3 and the other numbers in column n[...] can't be a 3. This part works fine but how can I get it to check that the number in n is not the same as the number in n or n for example.
I hope that you can follow where i'm going with this.