EDIT: this post is unclear...please skim it and move on to the next
given by teacher......causes run time error...who would have guessed?......
please help...
Code://....
asset * * group = new asset * [count];
//..........
group[i] = new stock; break; //stock inherits from asset
//^^ times 3
//.............
for(int j = 0; j < count; j++)
{
delete group[j];
}
delete [] group;