Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Exercise - struct for contact info

Create the code in steps. In each step create the struct add some data, and print it.

    1. At first define a person that has a name, an id.
    1. Each person can have several phone numbers. Each phone number has a type and a number. The type might be "Home" or "Work" or "Mobile".
    1. We might want to add some notes to some of the people.
    1. Some people might have a title (e.g. "Doctor", "Prof")