breakoriginalnumberbreaks the number into three parts and print them. this is what the output should look like from this function:
(718) 343-3243 is the original number 718 is the area code 343 is the exchange 3243 is the extension
this is my main function and the first function:
int main()
{
string telephone[14];
int i = 0;
while (cin) {
i++;
readoriginalnumber (telephone[i]);
cout<< endl;
}
return 0;
}
void readoriginalnumber (string &) {
string telephone[14];
int i = 0;
cout<< "Enter your telephone number" << endl;
getline (cin, telephone[i]);
return;
}
all i know right now is that my breakoriginalnumber gets three reference parameters. thank you for your help.

New Topic/Question
Reply



MultiQuote



|