diff --git a/du4/program.c b/du4/program.c index f008d89..a887dc8 100644 --- a/du4/program.c +++ b/du4/program.c @@ -39,10 +39,10 @@ double a,b,c; char ac,el=0; int count=0; int eof; +int ro=0; for(;eof!=EOF;count++){ eof=0; int k=0; - int ro=0; str=(char*)malloc(100); int ind=0; for(int i=0;eof!='\n';i++){ @@ -63,6 +63,7 @@ for(;eof!=EOF;count++){ result[count]=3; break; } + ro=0; if(eof==EOF) break; sscanf(str,"%lF%c%lF=%lF ",&a,&ac,&b,&c); free(str);