struct function
Posted
by gcc
on Stack Overflow
See other posts from Stack Overflow
or by gcc
Published on 2010-05-25T14:35:29Z
Indexed on
2010/05/25
14:51 UTC
Read the original article
Hit count: 385
typedef struct phoneEntry
{
struct phoneEntry* next;
char* info;
char* number;
} phoneEntry;
typedef struct contactEntry
{
struct contactEntry* next;
char* name;
char* surname;
struct phoneEntry* phoneList;
} contactEntry;
I want write a function that add a new contact to the phone book using given name and surname.(please, Note that a new contact should be located in the proper location which ensures the alphabetical ordering of the contacts.)
void addContact(contactEntry** phoneBook, char* name, char* surname)
{
}
I tried to write ,but ,unfortunetely, I cannot question is that there are any person who can help me.
© Stack Overflow or respective owner