hi,
Im having problems how to declare a struct function prototype and how to call it in main
eg
code:
_______________________________________
struct PhoneBook
{
int Number;
char Name[MAXNAMELENGTH + 1];
};
//Prototypes
void Sort(struct PhoneBook [], int LISTSIZE); //Sorts the contacts in the list
void Search(struct PhoneBook ); //Searchs list for a name and returns a bool value
struct Add(struct PhoneBook []); //Adds a single contact to list
struct Delete(struct PhoneBook []); //Deletes a single contact from list
main()
{
struct PhoneBook List[MAXLISTSIZE] = {
{ 353871234567890, "Tom Crowe"}
{ 32432543543534, "Thomas Riddick"}
};
Search(PhoneBook List); //i think this is wrong