53 std::cout <<
"Enter The Expression : ";
56 while (valid == 1 && i <
exp.length()) {
57 if (exp[i] ==
'(' || exp[i] ==
'{' || exp[i] ==
'[' || exp[i] ==
'<') {
69 std::cout <<
"\nCorrect Expression";
71 std::cout <<
"\nWrong Expression";
for std::invalid_argument
uint256_t exp(uint256_t number, uint256_t power, const uint256_t &mod)
This function calculates number raised to exponent power under modulo mod using Modular Exponentiatio...
char pop()
pop a byte out of stack variable
void push(char ch)
push byte to stack variable
int stack_idx
pointer to track stack index