Question: Please help in C++. Please answer all questions. Thank you. Part I: array_based list A. The following declaration is for problem 1 and 2: const
Part I: array_based list A. The following declaration is for problem 1 and 2: const int MAX=10; class AList public: Chain0: void PrintAIO void Delete(int k, int&x,bool &success); delete element at the position with index k and save it in x void Insert(int k, int x, bool &success); ll insert element x at the position with index k private: int list[MAX] int size; AList Chain; bool flag; int y; Assume you have a list of integers stored in a array-based list with the name of Chain declared as above and has the following integers 1. 10 12 18 21 Show the contents of Chain and the value of flag after you execute each statement of the following program segment: Chain::Insert(2, 6, flag); Chain::Insert(9, 25, flag); Chain::Delete(0, y, flag); Chain::Delete(8, y, flag); Assume you have a list of integers stored in an array-based list with the class name AList declared as above. Write the PrintAllO method for the AList class to prints out all values in the list that are greater than 10. 2. B. With the following declaration, do problem 1&2: const int MAX-10; class AListf public : Chain0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
