Cannot understand what is required from me in this assigment

My assignment:
Implement and use the Stack Class to check for balancing of enclosure
symbols:
Given a text file containing a sequence of characters, develop a program to check for
balancing of the symbols ( ) , [ ] , { } by using a stack ADT.


I do not understand what I am required to do. Can anyone simplify what the program should do?

Thank you.
You need to check whether every (, [, { in a file has a matching ), ], }.
Obviously, this should return an error: ( { ) }
(It has a pair of () and a pair of {}, but in messed up order.)
Thats what I thought.
Thank You!!!
Topic archived. No new replies allowed.