Update cv3/program.c
This commit is contained in:
parent
50804be2f7
commit
54f1444457
@ -81,8 +81,8 @@ int read(struct stack *s) {
|
|||||||
case '*':
|
case '*':
|
||||||
case '/': {
|
case '/': {
|
||||||
if (s->size < 2) {
|
if (s->size < 2) {
|
||||||
printf("no input\n");
|
printf("not enough operands\n");
|
||||||
return 1; // Continue to next iteration
|
exit(0); // Continue to next iteration
|
||||||
}
|
}
|
||||||
|
|
||||||
float b = pop_stack(s);
|
float b = pop_stack(s);
|
||||||
|
Loading…
Reference in New Issue
Block a user