test
This commit is contained in:
parent
83ee8f9add
commit
e0be203d42
5
anketa.c
5
anketa.c
@ -14,9 +14,10 @@ return i;
|
|||||||
}
|
}
|
||||||
|
|
||||||
int search(struct student* students,const char* name){
|
int search(struct student* students,const char* name){
|
||||||
|
int a;
|
||||||
for(int i=0; i<MAXSTUDENTS; i++){
|
for(int i=0; i<MAXSTUDENTS; i++){
|
||||||
if(strcmp(students[i].name,name)==0){
|
a=strcmp(students[i].name,name);
|
||||||
|
if(a==0){
|
||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user