I am having some problems compiling a program that formats phone numbers. My teacher wants us to use classes and objects, and I am having some problems with the calls and prototypes. This is what I have so far - could anyone provide some direction/help on this project, or help me with where I have gone wrong?
You're writing out the number with - separators. But when you read the numbers in, you don't process those inserted - separators. You have to read them in and ignore them.
Thank you both for your help! Basically, I am looking to take a specifically formatted input to make another specifically formatted output. For example:
input: First Last 5555555555
output: Last, First 555-555-5555
Is there a way I can write those functions out of line and call them (that's what I attempted to do but my program won't compile)?