Thread: address book

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Mar 2007
    Posts
    21

    address book

    I wrote an address book program with everthing functioning well. When I choose the print_entry option, it is supposed to print out all 3 entries that i put in, however it only prints out the most recent entry. Any advice on getting this right?

    Code:
               case 2:
               
               printf("%d", TotalAddress);
               for (x=0; x <= TotalAddress; x++)
               {
               print_entry(new_info[x]);
               }
               break;
    Last edited by cboard; 04-06-2007 at 12:08 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. I am very new . . . :(
    By Eternalglory47 in forum C++ Programming
    Replies: 6
    Last Post: 09-05-2008, 11:29 AM
  2. Replies: 10
    Last Post: 09-04-2008, 01:27 PM
  3. simple structure/linked list question
    By niponki in forum C Programming
    Replies: 16
    Last Post: 08-14-2005, 11:13 PM
  4. Memory leak - need help finding
    By ChadJohnson in forum C++ Programming
    Replies: 8
    Last Post: 04-06-2005, 07:26 PM
  5. Books on C and C++
    By kermi3 in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 10-28-2002, 04:18 PM