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.
c++ storing and retrieving names and addresses
Collapse
X
-
Tags: None
-
Originally posted by dirtysouth6975I 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 -
-
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
Comment