Question: Write a program that reads two words from a file. The first word is processed and stored as a stack of characters (first letter of
Write a program that reads two words from a file. The first word is processed and stored as a stack of characters (first letter of word will be at the bottom of the stack). The second word is processed and stored as a queue of characters. Using stack and queue operations determine if the words are the same? Note - Be sure to include *****StackType.h and ******QueueType.h in your .cpp.
Sample:
Input file: BOWIE BULLDOGS Stack has
E <- top
I
W
O
B
Queue has
B U L L D O G S
Front Back
Output for data above: Words are NOT the same
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
