I need to use stack of arrays. I need a C++ program that checksto see if parentheses (or brackets) in
expressions are valid or not. The program takes as input a textfile that has a series
of expressions, one per line. An example input file couldbe:
[ ][ ][ ][ ]
( )
( try )
]
ok
{
((())) [][][]
[ ] [ ]
55 5 4 3 2 2 { ( [ (3 * 4 ) ] ( 8 + 1 ) ) }
)()(
hello
last
The program should read them in and determine if the bracketsare arranged in a
valid way or not. The output should be a summary of the datafile
PayPal Gateway not configured
PayPal Gateway not configured