This commit is contained in:
Andrii Hermaniuk 2022-03-27 16:19:02 +02:00
parent 5149b5b654
commit 3e10b569bf

View File

@ -23,6 +23,7 @@ char *start=priklad, *end=NULL;
for(int c=0;c<count;c++){
int skip=0,z=0;
for(int idx=0;start[idx]!='\n';idx++){
if(start[idx]=='+'||start[idx]=='-'||start[idx]=='*'||start[idx]=='/'){
@ -36,7 +37,12 @@ for(int c=0;c<count;c++){
break;
}
}
if(skip==1||z==0){
if(skip==1){
continue;
}
if(z==0){
while((*start)!='\n')start++;
start++;
continue;
}
float num1=strtof(start,&end);