Hey, im trying to delete an element of an array of pointers of a class, how can i delete just a single element?
my code is basically this...
n =8;
ClassName *newName;
newName = new ClassName[n];
how would i delete for example, element 3, while being in that element... if that makes sense, at the moment ive just tried
delete newName;
and it compiles but prints out alot of errors when running it....