Question: make a C++ code that has three different data structuresa queue, a stack, and a linked list. What I want is can you please create

 make a C++ code that has three different data structuresa queue, a stack, and a linked list. What I want is can you please create one main.cpp file that can first implement queue, then stack and then linked list. The numbers need to be read from the .txt file and the file name has to be entered by the user and shouln't be hard coded in the code. Please use C++ STL classes in the code and the format of the .txt file is:

62 15 51 -5 5 31 20 -9


So can you please make a C++ code that first read the file name from user input and using C++ STL classes the code first print out queue, stack, and a linked list. The output message should be like:

QUEUE: 62 15 51 -5 5 31 20 -9

STACK: -9 20 31 5 -5 51 15 62

LINKED LIST: -9 -5 5 15 20 31 51 62


Also the OS needs to be in Linux. So can you please return it to me one .cpp file that does the following requirments. Thanks

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Algorithms Questions!