Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Income Tax Fundamentals 2013

Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill

31st Edition

1111972516, 978-1285586618, 1285586611, 978-1285613109, 978-1111972516

More Books

Students also viewed these Algorithms questions

Question

=+48. Oil prices, again. Return to the oil price data of Exercise

Answered: 1 week ago