6 Years
Discussion Span
Last Post by WaltP

1. Create a structure for a simple telephone directory system named struct telDirectory{}composed ofchar username[20], long telNum, char address[20].

so starting with your first question,
so about C++ structures fresh your knowledge. http://www.cplusplus.com/doc/tutorial/structures/

and Start to write that structure.

struct tellDirectory
 char userName[20];
 long tellNum;
 char address[20];

>>(1)Input record values (input records and save it into a text file)
you can do this using the std::cin which is defined in <iostream>
and using cin you can fill your datastructure.

you may define the method like this.

void input_record(tellDirectory& input);

Try I'm there when you get stuck.

My program is not accepting 10 digit phone numbers despite of using arrays

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.