The program stops after the above output is printed and its not a loop or an error, its just stops. The last row 0 [0, 0, 0, 0, 0, 0, 0, 0, 0] is supposed to be printed.
In read(), in the first...
Type: Posts; User: lisa92
The program stops after the above output is printed and its not a loop or an error, its just stops. The last row 0 [0, 0, 0, 0, 0, 0, 0, 0, 0] is supposed to be printed.
In read(), in the first...
This is the output. Final row 8 is not read.
3
x
x
x
|
x
x
x
Yes that is what I meant, sorry about that. But how is that supposed to help figure out whats the problem?
It prints out "x x x | x x x | x x x ".
Ok I did that and I saw it doesnt read the last row of the sudoku...
Also, in the main I called the method read() but now it doesnt want to go back to main(). It doesnt give me an error, it just...
Correct answer should be:
5 9 6 | 3 1 7 | 2 4 8
1 4 3 | 6 2 8 | 7 9 5
8 7 2 | 4 5 9 | 3 1 6
--------------------
2 1 4 | 5 3 6 | 9 8 7
6 5 8 | 7 9 2 | 1 3 4
9 3 7 | 8 4 1 | 5 6 2...
Here is my "completed" code for a sudoku solver. THe only problem is that the output sudoku is wrong and i dont know where the error might be. Thanks for the help.
Input file:
3
x x x | x x...