Изменил(а) на 'du3/program.c'
This commit is contained in:
parent
485a698d7a
commit
a97b28500c
@ -22,7 +22,7 @@ int main(){
|
|||||||
while(stop == 0){
|
while(stop == 0){
|
||||||
r = fgets(riadok,LINE_SIZE,stdin);
|
r = fgets(riadok,LINE_SIZE,stdin);
|
||||||
pos++;
|
pos++;
|
||||||
if (r == NULL || !isdigit(*r)) {
|
if (r == NULL || !isdigit(*r) || *r == EOF) {
|
||||||
//printf("%d", *r);
|
//printf("%d", *r);
|
||||||
if(*r == 10){
|
if(*r == 10){
|
||||||
stop = 1;
|
stop = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user