From 7db410f5bf256f23cfe4702915f642506b457ac6 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 13 Dec 2023 23:04:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=94=E5=AD=90=E6=A3=8B?= =?UTF-8?q?=E5=92=8CATMbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- practice_code/idea/5_chess/5_chess_5.c | 2 +- practice_code/idea/bank/ATM/ATM_3.c | 10 +++++----- .../idea/{start yuansheng.c => start_yuansheng.c} | 0 3 files changed, 6 insertions(+), 6 deletions(-) rename practice_code/idea/{start yuansheng.c => start_yuansheng.c} (100%) diff --git a/practice_code/idea/5_chess/5_chess_5.c b/practice_code/idea/5_chess/5_chess_5.c index bee64b4..cdf4353 100644 --- a/practice_code/idea/5_chess/5_chess_5.c +++ b/practice_code/idea/5_chess/5_chess_5.c @@ -998,7 +998,7 @@ void AI_chess ( int array , int * x , int * y , char array_chessboard[array][arr //判断缺第三个 if ( array_chessboard[ figure_i + 2 ][ figure_j - 2 ] == 'X' && array_chessboard[ figure_i - 2 ][ figure_j + 2 ] == 'X' && figure_i + 2 < array && - figure_j - 2 >= 0 && figure_i - 2 >= 0 & figure_j + 2 < array ) + figure_j - 2 >= 0 && figure_i - 2 >= 0 && figure_j + 2 < array ) { integral_b = 200; } diff --git a/practice_code/idea/bank/ATM/ATM_3.c b/practice_code/idea/bank/ATM/ATM_3.c index ee92041..50945d3 100644 --- a/practice_code/idea/bank/ATM/ATM_3.c +++ b/practice_code/idea/bank/ATM/ATM_3.c @@ -177,7 +177,7 @@ void account_sigin_program () { printf ( "-----注册取款密码(只能输入6位)----\n" ); printf ( "请输入取款密码:" ); - scanf ( "%s" , & account_password_1 ); + scanf ( "%s" , account_password_1 ); //校验是不是6位 account_password_1_test_1 = strlen ( account_password_1 ); if ( account_password_1_test_1 != 6 ) @@ -238,7 +238,7 @@ void account_login_program () account_login_tab: //登录账号标签 { printf ( "请输入账号:" ); - scanf ( "%s" , & account_number_test ); + scanf ( "%s" ,account_number_test ); if ( strcmp ( account_number_test , account_number ) != 0 ) { printf ( "账号不正确请重新输入 \n" ); @@ -491,7 +491,7 @@ void account_mode1_part4_program () account_modify_password_2_tab: { printf ( "请输入新取款密码:" ); - scanf ( "%s" , & account_password_1 ); + scanf ( "%s" , account_password_1 ); //校验是不是6位 account_password_1_test_1 = strlen ( account_password_1 ); if ( account_password_1_test_1 != 6 ) @@ -621,7 +621,7 @@ void administrastion_login_program () { printf ( "-----管理员登录页面----\n" ); printf ( "请输入管理员密码:" ); - scanf ( "%s" , & administrators_password_test ); + scanf ( "%s" , administrators_password_test ); if ( strcmp ( administrators_password , administrators_password_test ) != 0 ) { while ( getchar ( ) != '\n' );//清除缓存 @@ -789,7 +789,7 @@ void administrastion_mode4_program () { printf ( "-----修改取款密码(只能输入6位)----\n" ); printf ( "请输入新的取款密码:" ); - scanf ( "%s" , & account_password_1 ); + scanf ( "%s" , account_password_1 ); //校验是不是6位 account_password_1_test_1 = strlen ( account_password_1 ); if ( account_password_1_test_1 != 6 ) diff --git a/practice_code/idea/start yuansheng.c b/practice_code/idea/start_yuansheng.c similarity index 100% rename from practice_code/idea/start yuansheng.c rename to practice_code/idea/start_yuansheng.c