Browse Source

Initialization

master
Kozar 2 months ago
parent
commit
3ea86f6735
  1. 7
      cv5/program.c

7
cv5/program.c

@ -38,7 +38,12 @@ int main() {
// check if the line is empty
if (r == NULL || (r[0] == '\n' && strlen(r) == 1)) {
// end of input
break;
if (successful_lines == 0) {
printf("Nepodarilo nacitat nic\n");
return 0;
} else {
break;
}
}
// parse the string and extract number of votes and student name

Loading…
Cancel
Save