Aktualizovat „du5/program.c“

This commit is contained in:
Bohdan Yanchyk 2020-04-09 23:35:42 +00:00
parent a119f138ab
commit 910fa65ef7

View File

@ -45,7 +45,11 @@ int main(){
}
sscanf(str,"%s %[^\t\n]",digit,name);
if(isalpha(digit[0])!=0){
break;
if(c==0){
printf("Nepodarilo nacitat nic\n");
return 0;
}
break;
}
int score = atoi(digit);
PersonList[c].score = score;