Question: help me plz use c++ 10 std; class UnstortedList { public: void MakeEmpty(); 8 bool IsFull() const; int lengthis() const; void RetriveItem(int & item, bool


10 std; class UnstortedList { public: void MakeEmpty(); 8 bool IsFull() const; int lengthis() const; void RetriveItem(int & item, bool & found); 11 void Insert Item(int item); 12 void Delete(int item); 13 private: 14 int length; 15 int info (500); 16 17 }; 18 void UnstortedList :: MakeEmpty() 19 { 20 length=0; 21 } 22 bool UnstortedList :: IsFull() const 23 { 24 return(length=+500); 25 } 26 int UnstortedList :: lengthis() const 27. { 28 return length; 29 } 30 void UnstortedList :: Insert Item(int item) 31 - { 32 info [length]= item; 33 length ++; 34 } 35 36 int main() 37 { 8 UnstortedList obj; 9 obj.Insert Item(10); O obj. Insert Item(100); 1 obj.InsertItem(100); 2 obj.Insert Item(500); ch: Tocertittomia 12 found) void RetriveItem(int item, bool void InsertItem(int item); void Delete(int item); void printlist (); private: int length; int info [ee]; 16 }; 19 void Unstortedlist :: MakeEmpty() 20 { 21 length=0; 22 } 23 bool UnstortedList :: IsFull() const 24 { 25 return(length=5ee); 26 } 27 int UnstortedList :: lengthis() const 28 { 29 return length; 30 } 31 void UnstortedList :: Insertitem(int item) 32 { 33 info [length]= item; 34 length ++; 35 } 36 37 void Unstortedlist ::printlist() 38 { 39 for(int i=0; i
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
