1)How can i delete the memory allocated if i have allocated dynamically through "new" like that:
classA** instances;
instances=new classA*[5];
for(int i=0;i<5;i++){
instances=new classA;}
2)How can i pass arguments on the constructor while i am allocating memory in this way?:
classB* instances;
instances=new classB[5]