Aktualizovat „du4/program.c“
This commit is contained in:
parent
95b8458898
commit
0673cb9613
@ -74,6 +74,8 @@ char checkend(void){
|
|||||||
++count;
|
++count;
|
||||||
if(c==EOF || c=='\n'){
|
if(c==EOF || c=='\n'){
|
||||||
int a=c;
|
int a=c;
|
||||||
|
if((c=getchar())==EOF){
|
||||||
|
int b=c;
|
||||||
if((c=getchar())==EOF){
|
if((c=getchar())==EOF){
|
||||||
++count;
|
++count;
|
||||||
fseek(stdin,-count,SEEK_CUR);
|
fseek(stdin,-count,SEEK_CUR);
|
||||||
@ -81,6 +83,10 @@ char checkend(void){
|
|||||||
}
|
}
|
||||||
++count;
|
++count;
|
||||||
fseek(stdin,-count,SEEK_CUR);
|
fseek(stdin,-count,SEEK_CUR);
|
||||||
|
return b;
|
||||||
|
}
|
||||||
|
++count;
|
||||||
|
fseek(stdin,-count,SEEK_CUR);
|
||||||
return a;
|
return a;
|
||||||
}
|
}
|
||||||
else if(!isspace(c)){
|
else if(!isspace(c)){
|
||||||
|
Loading…
Reference in New Issue
Block a user