Question: why does my program has this error.what should I do? and here is my code of the .h file. #ifndef DYNAMICARRAY_H #define DYNAMICARRAY_H template class
why does my program has this error.what should I do?
and here is my code of the .h file.
#ifndef DYNAMICARRAY_H #define DYNAMICARRAY_H
template
DynamicArray(const DynamicArray&);//copy cons DynamicArray& operator=(const DynamicArray&);//assign operator int capacity()const{return C;} void capacity(int);//setter prototype A operator[](int )const ;//getter A& operator[](int);//setter ~DynamicArray(){delete []a;} }; template
#endif
#include kiostream #include cassert include Kalgorithm include "DynamicArray.h" using namespace std; int main Dynamic Array int k cout
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
