I am struggling with a problem about automatically initializing an array and checking if memory is available for the array.
I have created a Class that creates an array. An object of this class is created with a minimum and a maximum value (of the array).
1). I want the constructor to initialize the array, set to NULL.
2). The function 'CreateArray' must check if the array already exists before creating another one.
How can I do this?