Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ ((don't use STL verison please)) Implement the queue class as shown above. Use your queue to store the names of 5 students waiting outside

C++

((don't use STL verison please))

Implement the queue class as shown above. Use your queue to store the names of 5 students waiting outside Student Services to meet with advisors. You may want to add more data to each node including student ID, Major, etc. Add a member function displayQueue which displays the contents of the queue. Write the main function to test the queue.

HERE IS THE CLASS YOU MUST USE: #ifdef queue_h #define queue_h namespace queues { struct queueNode{ char data; queueNode *link; }; typedef queueNode* queueNodePtr; class queue { public: queue(); queue(const queue& aQueue); ~queue(); void add(char item); char remove(); bool empty() const; private: queueNodePtr front; queueNodePtr back; }; } #endif

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

Step: 3

blur-text-image

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

MySQL/PHP Database Applications

Authors: Brad Bulger, Jay Greenspan, David Wall

2nd Edition

ISBN: 0764549634, 9780764549632

More Books

Students also viewed these Databases questions