fix s nespravnymi operatormi 2
This commit is contained in:
parent
19a34f35ba
commit
4c4d4a5868
@ -28,7 +28,7 @@ int main() {
|
||||
index++;
|
||||
continue;
|
||||
}
|
||||
if ((isalpha(buffer[index]) || strchr("+-*/=123456789\n", buffer[index]) == NULL) && !error) {
|
||||
if ((isalpha(buffer[index]) || strchr(".+-*/=123456789\n", buffer[index]) == NULL) && !error) {
|
||||
error = 1;
|
||||
strcpy(output[output_length], "CHYBA");
|
||||
output_length++;
|
||||
|
Loading…
Reference in New Issue
Block a user