Working Program Class Dont Know Went Wrong Vararraycpp Looking Starts Fine Prints Size Che Q37125024

I have been working on this program for my class and I dont knowwhere i went wrong in the VarArray.cpp. Looking at it it startsfine and prints out the size and checks if 1 and 5 are present butthen the outputs afterwards dont work. If someone could check thisfor me that would be great!

vararray.h——

#ifndef VARARRAY_H_
#define VARARRAY_H_

class varArray {
public:
   varArray(); // void constructor
   int arraySize() const { return size; } // returns thesize of the array

   int check(int number); // returns index of elementcontaing “number” or -1 if none
   void addNumber(int); // adds number to the array
   void removeNumber(int); // deletes

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.