|
|
Step # 1: Define Library files & Boolean condition
Step # 2: construct class Stack
Step # 3: Define data type, private and public
Step # 4: Constructor where top=-1i.e the stack should be
Step # 5: Open a source code file
Step # 6: checking the equality of the char ={ &} character
Step # 7: Print messages as per given instructions
Step # 8: End of programme |