Search:

Type: Posts; User: lisa92

Search: Search took 0.17 seconds.

  1. Replies
    14
    Views
    567

    Re: Sudoku: wrong output?

    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...
  2. Replies
    14
    Views
    567

    Re: Sudoku: wrong output?

    This is the output. Final row 8 is not read.

    3
    x
    x
    x
    |
    x
    x
    x
  3. Replies
    14
    Views
    567

    Re: Sudoku: wrong output?

    Yes that is what I meant, sorry about that. But how is that supposed to help figure out whats the problem?
  4. Replies
    14
    Views
    567

    Re: Sudoku: wrong output?

    It prints out "x x x | x x x | x x x ".
  5. Replies
    14
    Views
    567

    Re: Sudoku: wrong output?

    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...
  6. Replies
    14
    Views
    567

    Re: Sudoku: wrong output?

    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...
  7. Replies
    14
    Views
    567

    Sudoku: wrong output?

    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...
Results 1 to 7 of 7