Program Language C++
How do I take lines of string from an input file, and implementthem into a stack using a double linked list? Example input,command.txt, and output file.
Ex:
Input.txt
postfix: BAC-*
prefix:+A*B/C-EF
postfix:FE-C/B*A+
postfix:AB-C-D/
postfix:AB-CF*-D / E+
Command.txt
printList
printListBackwards
Output.txt
List:
postfix:BAC-*
prefix:+A*B/C-EF
postfix:FE-C/B*A+
postfix:AB-C-D/
postfix:AB-CF*-D/E+
Reversed List:
postfix:AB-CF*-D/E+
postfix:AB-C-D/
postfix:FE-C/B*A+
prefix:+A*B/C-EF
postfix:BAC-*