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
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started