The first solution is more along the lines of what I was looking for. Thank you.
Type: Posts; User: Nightmaresiege
The first solution is more along the lines of what I was looking for. Thank you.
entries[] is an array of telephones. Each element in the array contains a person's name + area code + telephone number. The idea is to nullify the data for a given element as you said but I'm not...
Ok... Seems solid, what about trying something along the lines of:
bool deleteEntry (string nameToDelete)
{
for (int i = 0; i < numEntries; i++)
{
Telephone *b = NULL;
...
Hi,
I was wondering if it is possible to delete an element from an array of objects. If so, can anyone give me a few pointers on how? I don't think using delete[] would work in this case?
I'm working on a small phone book program. When a new entry is added to the phone book old entries should reorder themselves in the array alphabetically. For example, if the array contains:
Anna...