here is the main program:
int main()
{
string telephone;
for (int x = 0; x < telephone.length(); x++) {
readoriginalnumber();
}
here is the function:
string readoriginalnumber () {
string telephone;
cout<< "Enter your telephone number" << endl;
cin>> telephone;
cout<< endl << telephone << " is your original number" << endl;
return telephone;
}

New Topic/Question
Reply



MultiQuote



|