Aktualizovat „du4/program.c“
This commit is contained in:
parent
1efb9b9296
commit
46c2ad59ad
@ -39,10 +39,10 @@ double a,b,c;
|
|||||||
char ac,el=0;
|
char ac,el=0;
|
||||||
int count=0;
|
int count=0;
|
||||||
int eof;
|
int eof;
|
||||||
|
int ro=0;
|
||||||
for(;eof!=EOF;count++){
|
for(;eof!=EOF;count++){
|
||||||
eof=0;
|
eof=0;
|
||||||
int k=0;
|
int k=0;
|
||||||
int ro=0;
|
|
||||||
str=(char*)malloc(100);
|
str=(char*)malloc(100);
|
||||||
int ind=0;
|
int ind=0;
|
||||||
for(int i=0;eof!='\n';i++){
|
for(int i=0;eof!='\n';i++){
|
||||||
@ -63,6 +63,7 @@ for(;eof!=EOF;count++){
|
|||||||
result[count]=3;
|
result[count]=3;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
ro=0;
|
||||||
if(eof==EOF) break;
|
if(eof==EOF) break;
|
||||||
sscanf(str,"%lF%c%lF=%lF ",&a,&ac,&b,&c);
|
sscanf(str,"%lF%c%lF=%lF ",&a,&ac,&b,&c);
|
||||||
free(str);
|
free(str);
|
||||||
|
Loading…
Reference in New Issue
Block a user