I just wanted to know what would happen if you abuse the CharStack class by pop()ing more characters than you push()? Would it be an error of out of exception or something else.
vishal1949
-1
Light Poster
Recommended Answers
Jump to PostRead the API docs for the class.
Jump to PostBesides... Your code should be checking not to pop() if there are 0 elements in your stack.
All 5 Replies
Ezzaral
2,714
Posting Sage
Team Colleague
Featured Poster
hfx642
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
hfx642
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.