You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
544 B

#include "SudokuMatrix.h"
#include <stdio.h>
void PrintMatrix(SudokuMatrix *matrix){
for (int i=0;i<9;i++){
if (i == 0 || i == 3 || i == 6){
printf("|-----------------------------|\n");
}
for (int j=0;j<9;j++){
if (j == 0 || j == 3 || j == 6){
printf("|");
}
printf(" %d ",matrix->matrix[i][j]);
}
// 打印最后一列的竖线
printf("|\n");
}
// 打印尾巴那行
printf("|-----------------------------|\n");
}