Question: #ifndef DYNAMICARRAY _ H #define DYNAMICARRAY _ H #include using namespace std; class DynamicArray { string * array; int currentMaxNumElements; int currentNumElementsStored; void resize (
#ifndef DYNAMICARRAYH
#define DYNAMICARRAYH
#include
using namespace std;
class DynamicArray
string array;
int currentMaxNumElements;
int currentNumElementsStored;
void resizeconst int newsize;
public:
DynamicArray;
DynamicArraystring int, int;
DynamicArrayconst DynamicArray& rhs;
~DynamicArray ;
DynamicArray& operatorconst DynamicArray& rhs;
int getCurrentNumElementsStored const;
int getCurrentMaxNumElements const;
void addElementToEndOfArrconst string& newitem;
string getElementAtIndexconst int iconst;
void replaceElementAtIndexint i string newItem;
void removeElementAtIndexint i;
void clearArray;
friend ofstream& operatorofstream& out, DynamicArray arr;
;
#include "dynamicArray.cpp
#endif
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
