Изменить 'du5/program.c'
This commit is contained in:
parent
271e517175
commit
da19e6cc6a
@ -76,7 +76,13 @@ int main() {
|
||||
memset(number1, '\0', 25);
|
||||
memset(name, '\0', 25);
|
||||
symbol = inputs[i][counter++];
|
||||
if(!isdigit(symbol)) break;
|
||||
if(!isdigit(symbol)){
|
||||
if (i == 0){
|
||||
printf("Nepodarilo nacitat nic");
|
||||
return 0;
|
||||
}
|
||||
break;
|
||||
}
|
||||
while(symbol != '\0' && symbol != '\n'){
|
||||
if(isspace(symbol) && isdigit(inputs[i][counter-2]))
|
||||
symbol = inputs[i][counter++];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user