hi there y'all. I am study c++ and am trying to write a method to increase
the size of an array when passed an int value determing the array size. This
is my go at it which does not work. Can anybody give me some idea how to do
this?? Thanks for your time
template <class BType, class IType>
void Array<BType, IType>::grow(int newS)
{
arrayData = new BType[newS];
assert (arrayData != 0);
for (int i = 0; i <= hibnd - lobnd; ++i)
arrayData[i] = BType[i];
}