Question: -must use linked lists for functions -cannot use libraries for stacks and queues -comments above lines encouraged Write a C+program to implement a Stack and
Write a C+program to implement a Stack and a Queue. The program will be menu driven. Main Menu 1) Stack 2) Queue 3) Quit Enter option: Stack option. 1 Enter filename: data_file Read each word from the file and push it onto the stack until EOF. At EOF the program will pop each word from the stack (and free space) and write each word to a new file "report_ out". Do-in include numbers or punctuation marks in output. Data_file The quick brown fox. Report_out fox brown not quick The
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
