c++ storing and retrieving names and addresses

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dirtysouth6975
    New Member
    • Oct 2007
    • 8

    c++ storing and retrieving names and addresses

    I am trying to grasp onto this c++. While trying to grasp on, I have to write a program that stores and retrieves a person's name and his address. Would I write a file outside of the program and save it to my c:/ and call for it in my program, or do I add it in to my program and call it later on in the program.
  • gpraghuram
    Recognized Expert Top Contributor
    • Mar 2007
    • 1275

    #2
    Originally posted by dirtysouth6975
    I am trying to grasp onto this c++. While trying to grasp on, I have to write a program that stores and retrieves a person's name and his address. Would I write a file outside of the program and save it to my c:/ and call for it in my program, or do I add it in to my program and call it later on in the program.

    HI,
    The name and address you want to access will be entered by the user when he is running it then get it inside the program or else you can enter the values in a text file and save it.

    Raghuram

    Comment

    • dirtysouth6975
      New Member
      • Oct 2007
      • 8

      #3
      So when submitting my program code, so I would need to submit the file with it?

      Comment

      • oler1s
        Recognized Expert Contributor
        • Aug 2007
        • 671

        #4
        For your assignment, isn't the format of the file with the names and addresses specified? If it isn't, it would be a good idea to indicate what you have decided the format of the file to be.

        But if it is decided by whoever gave you the assignment, then no need, right?

        Comment

        Working...