Question: I was wondering how I would be able to complete the containsAll function. I basically want to make a function that will allow me to

I was wondering how I would be able to complete the containsAll function.

I basically want to make a function that will allow me to check if an array is a subset of another and then return true/false depending on the answer. Thanks!

Here is the code down below, I'm trying to solve the one at the very bottom. (bool containsAll).

#ifndef ARRAYBAG_H_INCLUDED #define ARRAYBAG_H_INCLUDED #include "Bag.h" #include using namespace std;

class ArrayBag: public Bag { private: int items; // members in bag int bagSize; bag_type* data; // array to hold bag elements public:

// The Bag implementation Code ArrayBag(int n) // Constructor { // set the initial state of the bag bagSize=n; data = new bag_type[bagSize]; items=0; //cout<<"items="<

#endif // ARRAYBAG_H_INCLUDED

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!