I'm trying to make an Dynamic Array of an Object.
but the first step I want to make sure I have everything correct creating my Dynamic Array.
Here is what I have for my .h file.
And here is what I have on my .cpp fileCode:class course{ Public: course(int maxSize = 1024); ~course(); Private: int mySize; int maxCapacity; string * myArray;
is that correct? I still need to create the copy constructor too I'm working on that now.Code:(All the include)... course::course(int maxSize):mySize(0), myCapacity(maxSize){ myArray = new(nothrow) string[maxSize]; } course::~course(){ delete [] myArray; }
but what I want to know is. Once I have my Dynamic Array how can I make it an array of another class that I have.
}




Reply With Quote