From d372cf7f2db0ada8e54f990d471371eb93c12fac Mon Sep 17 00:00:00 2001 From: p62jhspgx <2736273201@qq.com> Date: Sun, 5 Nov 2023 18:02:07 +0800 Subject: [PATCH] Delete 't1.cpp' --- t1.cpp | 41 ----------------------------------------- 1 file changed, 41 deletions(-) delete mode 100644 t1.cpp diff --git a/t1.cpp b/t1.cpp deleted file mode 100644 index 362fdeb..0000000 --- a/t1.cpp +++ /dev/null @@ -1,41 +0,0 @@ -#include -int board[9][9]={{5,3,4,6,7,8,9,1,2}, -{6,7,2,1,9,5,3,4,8}, -{1,9,8,3,4,2,5,6,7}, -{8,5,9,7,6,1,4,2,3}, -{4,2,6,8,5,3,7,9,1}, -{7,1,3,9,2,4,8,5,6}, -{9,6,1,5,3,7,2,8,4}, -{2,8,7,4,1,9,6,3,5}, -{3,4,5,2,8,6,1,7,9}}; -void f1() -{ - printf("|"); - for (int i = 0; i < 23; i++) - { - printf("-"); - } - printf("|\n"); -} -int main() -{ - printf("格式化后的数组:\n"); - for (int i = 0; i < 9; i++) - { - if (i % 3 == 0) - { - f1(); - } - printf("| "); - for (int j = 0; j < 9; j++) - { - if (j % 3 == 0 && j) - { - printf("| "); - } - printf("%d ", board[i][j]); - } - printf("|\n"); - } - f1(); -} \ No newline at end of file