aaa
This commit is contained in:
parent
5149b5b654
commit
3e10b569bf
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user