|
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 | top = -1 |
| pointer to track stack index | |
| void | push (char ch) |
| push byte to stack variable | |
| char | pop () |
| pop a byte out of stack variable | |
Perform paranthesis matching.
| #define MAX 100 |
check number
| char opening | ( | char | ch | ) |