Im a new student at c++ and have began learning from the book "C++ Programming From Problem Analysis to Program Design Edition 5 by - D.S Malik"
In the book chapter 5 asks a question to make this program repeat as many times as the person desires.
This program turns a string into numbers using the letters on a mobile phone like abc is 1, def is 2 etc..
I have it working fine but want to ask the user after the first run through, if they would like to process another string..
I have a problem with the cin >> letter; statement, it doesn't clear the input from the first runthrough and i can't get it to clear to run again when i try..
Here is the code for the first run through so how do i get the program to process a 2nd time and clearing the first input?