This commit is contained in:
Michaela Šaková 2019-03-23 20:18:59 +01:00
parent 1183d33467
commit 84a8940644
3 changed files with 5 additions and 5 deletions

BIN
anketa

Binary file not shown.

View File

@ -4,13 +4,13 @@
#include <assert.h>
int count_students(struct student* students){
int x=0;
for(int i=0; i<MAXSTUDENTS; i++){
if(students[i].votes>0){
x++;
int i;
for(i=0; i<MAXSTUDENTS; i++){
if(students[i].votes<0){
break;
}
}
return x;
return i;
}
int search(struct student* students,const char* name){

BIN
anketa.o

Binary file not shown.