FAQ | Newsboard | Telnet | Email TA | Lectures | Assignments | Man pages | Help |
---|
Implement a stack using a linked list instead of arrays. Write a program that uses this stack class to ensure that every open parenthesis, curly brace, and square brace has a mathcing close parenthesis, curly brace, and square brace respectively. This is very similar to assignments one and two.
For example: In
if(a < b) { vec[i] = 2;}Everything matches. But in
if(a < b) { vec[i} = 2;}There is a mismatch;
Use the normal turning procedure.