The second line cin.get() is step over are most probably due to the error that always arise when you use cin.get() more than once. You can try to solve the problem by inserting cin.ignore(); in between the coding consist of first cin.get() and the second cin.get(). cin.ignore() is use to terminate characters or buffer of input. You can search for the cin.ignore() in the Internet to uderstand more about the usage.
Hope it helps.
Reputation Points: 52
Solved Threads: 4
Junior Poster in Training
Offline 84 posts
since Sep 2006