Computer Science 2611
Spring 2000
Laboratory Assignment 11

Modify your solution to assignment 10. Instead of having separate arrays for the names and numbers, use a single array that holds both the names and the numbers. Each member of this array should be a structure holding a name and a number. It can be defined by
    struct phoneinfo {
      char name[MAX_NAME_LENGTH + 1];
      char number[MAX_NUMBER_LENGTH + 1];
    };
Pass this entire array around among functions. If you want to pass a name/number pair, pass the entire structure.

Suppose that your array of phoneinfo structures is called info. Then info[i] has type phoneinfo. It is one entry in the phone book. Use info[i].name to get the name of the i-th entry, and info[i].number to get the number of the i-th entry.

Turn in a printout of your modified program, after you have tested it.