Aktualizovat „du5/program.c“

This commit is contained in:
Artem Horbunov 2020-04-08 06:10:51 +00:00
parent dcc64bc321
commit f098d913ae

View File

@ -12,8 +12,8 @@ int main(){
scanf("%d %[^\n]", &score[pos], name[pos]);
scanf("%*c");
pos++;
if(!strcmp(name[pos - 1], cmpStr1) == 0) break;
if(!strcmp(name[pos - 1], cmpStr2) == 0) break;
if(strcmp(name[pos - 1], cmpStr1) == 0) break;
if(strcmp(name[pos - 1], cmpStr2) == 0) break;
int tmpCh = getc(stdin);
if(tmpCh == '\n') break;