Search:

Type: Posts; User: cas

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    17,456

    When you're having problems, your first response...

    When you're having problems, your first response should not be to cast. Casting is rarely the right thing to do. In the case here, you have an int. Why would you try to copy a string into it? ...
  2. Replies
    5
    Views
    17,456

    scanf("%d", contacts[contact_ctr-1].PhoneNum); ...

    scanf("%d", contacts[contact_ctr-1].PhoneNum);

    When reading an integer with scanf(), you must pass the address of the int, not the int itself, so scanf() knows where to write (you always need to...
Results 1 to 2 of 2