All,
I found the solution to my problem by browsing over to the MSDN C++ Language Forum. As I suspected, it was a silly oversight on my part. To wit: line 15:
|
cin >> playerDiscardCount;
|
and line 19:
|
cin >> playerDiscardCount;
|
which are not followed with
From the Forum, the first cin.getline() in my "for" loop gets skipped for the following reason:
"The reason is simple, when you enter an int value, you need to press enter('\n'), and this '\n' makes the first getline get skipped, so you need to add "cin.get()" to eliminate that '\n'."
when I added the statement:
after lines 15 and 19, which gobbles up their newlines, all was well.
Sorry to bother you all. Cheers,
David