Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Confusing enough? Like it?

Name: brunch 2011-05-09 21:17

void sudoku_print(const Sudoku* sudoku){
    int i = 0;
    if (!sudoku)
        return;

    printf("+=====+=====+=====+");

    for (i = 0; i < 81; i++){
        if (!(i % 9)){
            if (i)
                printf("|");
            printf("\n");
        }
        if (!(i % 27) && i)
            printf("¦-----+-----+-----¦\n");
        if (!(i % 3))
            printf("|");
        else
            printf("¦");


        printf("%c", sudoku->puzzle[i/9][i%9]);
    }

    printf("|\n+=====+=====+=====+\n");
}

Name: Anonymous 2011-05-09 22:03

>>2
Failing BBCode four times.
You want the [#].

[code] BBCode

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List