Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

in C++ please this is the pseudocode and I need the code III. Data structure: *** - listNode class friend of LLStack, LLQueue, LLlist -

image text in transcribed
in C++ please
this is the pseudocode and I need the code
III. Data structure: *** - listNode class friend of LLStack, LLQueue, LLlist - data (int) - next (listNode) Method: - constructor (data) //create a node with given data - printNode (node, outFile) in the format as below: (node's data, data of node's next) - LLStack class - listNode top Methods: - constructor (...) // creates a new stack with a dummy node, set the data in the dummy node to -9999 and set next to null: and let top points to the dummy node - buildStack (inFile) // see algorithm below. Implement all other stack operations on your own. Use the following stack operations in buildStack. You may add other operations as needed -push (newNode) // puts new Node at the top of Stack, after the dummy node. listNode pop(...) if stack is empty returns mull, otherwise deletes and returns the top node of Stack bool isEmpty / if Stack is empty retums true. Otherwise retums false - printStack (outFileh / DO NOT delete nodes in Stack Outputs to outFilel. the entire stack, including dummy node, you may call printNode...) using the following format: ustaw, N. NULL

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

Microsoft Visual Basic 2008 Comprehensive Concepts And Techniques

Authors: Gary B. Shelly, Corinne Hoisington

1st Edition

1423927168, 978-1423927167

More Books

Students also viewed these Databases questions

Question

8. Providing support during instruction.

Answered: 1 week ago