Fields

closed account (S3TkoG1T)
Dear citizens of the world,

Question: How can we write functions to access various fields?

Example: A phone number -- it has an area code, exchange & subscriber -> (123)-456-7890

How can we write a function to access the various fields of a phone number both in a particular class & in the main?


this is extremely vague. 'How' depends on what you want to accomplish.

Usually you use struct/class and arrays for this.

Or do you mean parsing a string?
Fran dont comment, if your not helping.

@Zombie go.

Coder777 answered, Usually you use struct/class.
Luke, your comment isn't particularly constructive either. You don't need to police anyone, particularly a first time poster who hasn't done anything egregiously wrong.
Actually, the "first time poster" is a spambot, and its message has been nuked from orbit :)
closed account (S3TkoG1T)
Coder777 -- Figured to create a class. Thanks! :)
Topic archived. No new replies allowed.