Im having a bit of a problem with this:

Code:
apstring String //String class that I gotta use
char Hmm[8]
cout << "Prompt - ";
cin >> String;
cout << "\nPrompt -";
cin.getline(Hmm, 8)
The program compiles fine, but when I run it, it accepts input to the first prompt but then, after displaying the second prompt, skips over the call of cin.getline immediately to the next statement. Hmm is left empty. It seems, however, to work if the cin.getline call is first.

I'm confused.