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