|
|
@ -22,8 +22,7 @@ void sudokuPrint(struct Sudoku a){
|
|
|
|
if(!a.inc[i][j])
|
|
|
|
if(!a.inc[i][j])
|
|
|
|
putchar('.');
|
|
|
|
putchar('.');
|
|
|
|
else
|
|
|
|
else
|
|
|
|
// putchar(a.inc[i][j] + 48);
|
|
|
|
putchar(a.inc[i][j] + 48);
|
|
|
|
printf("%d", a.inc[i][j]);
|
|
|
|
|
|
|
|
putchar(' ');
|
|
|
|
putchar(' ');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
putchar('\n');
|
|
|
|
putchar('\n');
|
|
|
@ -90,7 +89,6 @@ struct Sudoku *sudokuFill__(struct Sudoku *a, int unfillednum, struct Sudoku *ta
|
|
|
|
if(!unfillednum){
|
|
|
|
if(!unfillednum){
|
|
|
|
pres = M_Sudoku + tp ++;
|
|
|
|
pres = M_Sudoku + tp ++;
|
|
|
|
sudokuCopy(*a, pres);
|
|
|
|
sudokuCopy(*a, pres);
|
|
|
|
sudokuPrint(*a);
|
|
|
|
|
|
|
|
return pres;
|
|
|
|
return pres;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
int m=0, n=0;
|
|
|
|
int m=0, n=0;
|
|
|
|