Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

i need only c++ 14 code.in first part you have to construct classes and interface as required,then apply part 2 in part 1.the files will

image text in transcribedi need only c++ 14 code.in first part you have to construct classes and interface as required,then apply part 2 in part 1.the files will be four.

Your data structure part 1 The code you have written for this assignment will be expanded by later assignments. Write your code cleanly so that you can add/modify features later on. In this assignment you have to program a commonly used data structure (matrix, stack, queue, tree, etc..., excluding array/vector/string). First, you have to create an interface class for this data structure. This interface class should have absolutely necessary functionality (push/pop/isempty for stack). Remember it should have no implementation (pure virtual functions only), no data members. You should use integers for data. In the second part you should implement this interface in a class inheriting from it). This class should have additional functions that are specific to your implementation. For instance, in stack you should have size, number of elements in it, etc... You may use vector as underlying data type for all these data structures. Your implementation should have necessary constructors that will allow user to set initial data. Do not add any operator overloading as it will be the topic of our next assignment. Adding the operators part 2 In this assignment you are required to add necessary operators to your previous data structure. Make sure you have at least the following in addition to any operator that makes sense (I will have a list of operators which should be implemented for each data structure type): Copy assignment Move assignment/constructor Stream inserter Access to inner elements using I or 0 Comparison (==, !=) Your codes should be organized as before. No need for document this time. Upload a single zip file. Make sure your program compiles in a standard C + + compiler

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

Relational Database Technology

Authors: Suad Alagic

1st Edition

354096276X, 978-3540962762

More Books

Students also viewed these Databases questions

Question

What are the vertex and range of y = |x + 3| + 2

Answered: 1 week ago

Question

mple 10. Determine d dx S 0 t dt.

Answered: 1 week ago