test
This commit is contained in:
parent
1183d33467
commit
84a8940644
10
anketa.c
10
anketa.c
@ -4,13 +4,13 @@
|
|||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
int count_students(struct student* students){
|
int count_students(struct student* students){
|
||||||
int x=0;
|
int i;
|
||||||
for(int i=0; i<MAXSTUDENTS; i++){
|
for(i=0; i<MAXSTUDENTS; i++){
|
||||||
if(students[i].votes>0){
|
if(students[i].votes<0){
|
||||||
x++;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return x;
|
return i;
|
||||||
}
|
}
|
||||||
|
|
||||||
int search(struct student* students,const char* name){
|
int search(struct student* students,const char* name){
|
||||||
|
Loading…
Reference in New Issue
Block a user