goal of this function will be to add an element to an alreadyexisting array in C/C++.
bool add(structure dir[], int& size, const char nm[], constchar ph[]){
//code here
}
add = function name
structure = structure with two fields
{
char name[20];
char phone[13];
}
int& size = # of entries in dir
nm = name that's going to be added
ph = phone that's going to be added.
return true if entry was successfully added, false if there's nomore room.
if entry was added, size will reflect the new number of entriesin dir.