Aktualizovat „du4/program.c“
This commit is contained in:
parent
53209e612b
commit
0a712fe1d7
@ -48,6 +48,7 @@ double compare_percent(double a, double b, double eps)
|
||||
}
|
||||
|
||||
int check(char *str){
|
||||
int flag=0;
|
||||
char symb[5]="*-+/=";
|
||||
for(int i =0;i<strlen(str);i++){
|
||||
for(int k =0;k<5;k++){
|
||||
@ -57,8 +58,11 @@ int check(char *str){
|
||||
}
|
||||
}
|
||||
}
|
||||
if(str[i]=='='){
|
||||
flag=1;
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
return flag==1?1:0;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user