Thread: Address program

  1. #1
    Registered User
    Join Date
    Jun 2004
    Posts
    52

    Address program

    Heres what I want. And I am not sure how to do it.

    I want to make it so when the program starts you can input a letter such as "s"

    when u input "s" a list of 10 names comes up for instance:

    1.sa
    2.sb
    3.sc
    4.sd
    5.se
    6.sf
    7.sg
    8.sh
    9.si
    10.sj

    You then input the number u want and it outputs that persons
    email
    phone number
    and anything else I want to put in.

    Any ideas as to how i should do this?

  2. #2
    Sweet
    Join Date
    Aug 2002
    Location
    Tucson, Arizona
    Posts
    1,820
    have you read anything on fstreams?
    Woop?

  3. #3
    Registered User
    Join Date
    Jun 2004
    Posts
    52
    No, but im a fast learner!.........kind of.
    only thing i know about fstream is the header #include <fstream.h>
    thats it!

  4. #4
    Sweet
    Join Date
    Aug 2002
    Location
    Tucson, Arizona
    Posts
    1,820
    here is a very good tutorial on file i/o which is very handy for address books
    http://www.cpp-home.com/loobian/tuto...e_io/index.php
    Woop?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Using variables in system()
    By Afro in forum C Programming
    Replies: 8
    Last Post: 07-03-2007, 12:27 PM
  2. Program address switches
    By Queatrix in forum Windows Programming
    Replies: 1
    Last Post: 08-13-2005, 09:37 AM
  3. Im so lost at . .
    By hermit in forum C Programming
    Replies: 18
    Last Post: 05-15-2002, 01:26 AM
  4. Replies: 2
    Last Post: 05-10-2002, 04:16 PM
  5. My program, anyhelp
    By @licomb in forum C Programming
    Replies: 14
    Last Post: 08-14-2001, 10:04 PM