CIS170C All Assignments CIS170C All Assignments | Page 28
Continue processing until the user enters a Q.
You will set up the 8 char variables to hold the digits of the phone number in main() and pass
the variables to the functions by reference.
Sample Output from the Program
Enter a phone number (Q to quit): 213-2121
Phone Number Dialed: 213-2121
Enter a phone number (Q to quit): asc-dfer
Phone Number Dialed: 272-3337
Enter a phone number (Q to quit): 555-resw
ERROR - Phone number cannot begin with 555
Enter a phone number (Q to quit): 098-8765
ERROR - Phone number cannot begin with 0
Enter a phone number (Q to quit): 12345678
ERROR - Hyphen is not in the correct position
Enter a phone number (Q to quit): @34-*uyt