a1
This commit is contained in:
parent
031e6f3887
commit
2552cc5a80
@ -25,6 +25,7 @@ struct vzorec{
|
||||
};
|
||||
|
||||
int main(){
|
||||
char a,b,c,d,f;
|
||||
int results[SIZE];
|
||||
char line[SIZE];
|
||||
char znaky[] = "+-*/";
|
||||
@ -39,7 +40,8 @@ int main(){
|
||||
break;
|
||||
}
|
||||
int n = sscanf(line, "%lf %c %lf %c %lf", &funkcia->x, &funkcia->znak1, &funkcia->y, &funkcia->znak2, &funkcia->result);
|
||||
if(checkZnaka(znaky, funkcia->znak1) == true || funkcia->znak2 != '=' || (funkcia->x == 0 && funkcia->y == 0 && funkcia->result == 0)){
|
||||
int n1 = sscanf(line, "%c %c %c %c %c", &a, &b, &c, &d, &f);
|
||||
if(checkZnaka(znaky, funkcia->znak1) == true || funkcia->znak2 != '=' || (funkcia->x == a && funkcia->y == c && funkcia->result == f)){
|
||||
results[counter] = 1;
|
||||
counter++;
|
||||
continue;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user