Question: A newString class having a pointer string variable reads a string and converts them to the 10 digit phone numbers according a phone key pad.
A newString class having a pointer string variable reads a string and converts them to the 10 digit phone numbers according a phone key pad.
Use the following strings:
1800BANCORP
1800USBANK
1800MYKOHL
Use input and output overloaded functions of the class and overload array index operator to convert to the 10 digit number of the input string. Also write appropriate constructor, assignment operator, copy constructor as required. Write a C++ program for the above problem and write algorithm in words.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
