i need help about my oop code..
i got this message after i delete allocated class object,
should i check the deleting? if it's object what is the correct way to delete/delete?
theCars[nToDel] is a static array of pointers
thanks for the answer, but i have static array of pointers which point to objects and i want deleting this object not the array,the object is allocated, i tried calling the destructor but it didn't solve the problem..
if i called the destructor of the object i got this message:
Unhandled exception at 0x002743a6 in oop_ex1.exe: 0xC0000005: Access violation reading location 0x00000000.