Algorithms_in_C++ 1.0.0
Set of algorithms implemented in C++.
|
Perform paranthesis matching. More...
#include <iostream>
#include <cstring>
Macros | |
#define | MAX 100 |
Functions | |
char | opening (char ch) |
int | main () |
char | stack [MAX] |
int | stack_idx = -1 |
pointer to track stack index | |
void | push (char ch) |
push byte to stack variable More... | |
char | pop () |
pop a byte out of stack variable More... | |
Perform paranthesis matching.
#define MAX 100 |
check number
int main | ( | void | ) |
char opening | ( | char | ch | ) |
return opening paranthesis corresponding to the close paranthesis
[in] | ch | closed paranthesis character |