after i made the array of pointer to point to some values i want to remove one of the values that i point to, i dont really know how to do this i tried to make a for loop:
1 2 3 4 5 6 7
for(int i = 0; i < size ; i++)
{
if(l[i]->getValue() == enteredValue)
{
delete l[i];
}
}
when i do this it gives me error next time im in the loop, it says something that it can't read the memory location