Demo entry 6749584

#ifndef ARRAY_CPP#define ARRAY_CPP#include"Array.h"template<classT>Array<T>::Array(intsize){if(size<=0)cout<<"Invalid Array Size!!!\n\n";elseArraySize=size;ArrayLength=0;GetArray();}template<classT>voidArray<T>::GetArray(void){array=newT[ArraySize];if(array==NULL)cout<<"Error!!!\n\n";}template<classT>booleanArray<T>::Insert(T&x,inti){if(ArrayLength==ArraySize||i>ArrayLength){cout<<"the Array is out of range!!!\n\n";returnFALSE;}intm;for(m=ArrayLength-1;m>=i;m--){array[m+1]=array[m];}array[i]=x;ArrayLength++;returnTRUE;}template<classT>booleanArray<T>::Remove(inti){intm;if(ArrayLength==0){cout<<"array is empty！！！\n\n";returnFALSE;}if(i<0||i>ArrayLength-1)returnFALSE;elsefor(m=i;m<ArrayLength-1;m++){array[m]=array[m+1];}ArrayLength--;returnTRUE;}