Added division by zero detection

This commit is contained in:
Vera Lewis
2025-03-14 02:26:24 -05:00
parent d30d861c2b
commit 56edfa1fef
2 changed files with 15 additions and 2 deletions

View File

@@ -1,5 +1,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <math.h>
#include <ctype.h>
#include <string.h>
@@ -9,6 +10,7 @@ const int ERR_NS_OPERANDS = 1;
const int ERR_NS_OPERATORS = 2;
const int ERR_INVALID_INPUT = 4;
const int ERR_INVALID_FACTORIAL = 8;
const int ERR_DIV_BY_ZERO = 16;
struct EE_STACK_NODE {