Aphone number,such as(212) 767-8900.can be thought of as having three parts: the area code (212) the exchange (767), and the number (8900).write aprogram that uses a structure to store these three parts of a phone number separately. Call the structure phone. Create two structure variables of type phone. Initialize one and have the user input the number for the ather one. Then display both numbers.The interchange might look like this.
1
Expert's answer
2017-04-25T02:04:08-0400
#include <iostream> #include <string> #include <regex> using namespace std;
Comments
Leave a comment