Обновить cv3/program.c
This commit is contained in:
parent
e713389776
commit
8cfcf69563
@ -42,7 +42,7 @@ int main() {
|
||||
StEk stek;
|
||||
inicStEk(&stek);
|
||||
char bufer[256];
|
||||
while (fgets(bufer, sizeof(bufer), stdin)) {
|
||||
while (fgets(bufer, sizeof(bufer), stdin) != NULL) {
|
||||
char* konec;
|
||||
double chislo = strtod(bufer, &konec);
|
||||
if (*konec == '\n' && *bufer != '\n' && *bufer != ' ') {
|
||||
@ -104,5 +104,6 @@ int main() {
|
||||
}
|
||||
printf("\n");
|
||||
}
|
||||
printf("no input\n");
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue
Block a user