From 33622549588ed3ef100cf52f5d06497aa276c615 Mon Sep 17 00:00:00 2001 From: Cx330 <2011690092@qq.com> Date: Sat, 15 Apr 2023 14:19:55 +0800 Subject: [PATCH] =?UTF-8?q?Cx330=5F=E6=8C=89=E5=A7=93=E5=90=8D=E7=9A=84?= =?UTF-8?q?=E5=AD=97=E5=85=B8=E9=A1=BA=E5=BA=8F=E6=8E=92=E5=87=BA=E6=88=90?= =?UTF-8?q?=E7=BB=A9=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index cf04179..89e8582 100644 --- a/README.md +++ b/README.md @@ -249,9 +249,7 @@ void SortbyName(STU stu[],int n,int m) ``` void SearchbyNum(STU stu[],int n,int m) { - long number; - int i,j; - printf("Input the number you want to search:"); + } ``` @@ -259,7 +257,24 @@ void SearchbyNum(STU stu[],int n,int m) ``` void SearchbyName(STU stu[],int n,int m) { - + char x[MAX_LEN]; + int i,j; + printf("Input the name you want to search:"); + scanf("%s", x); + for(i=0;i