View Single Post
Old 08-27-2003, 10:53 AM   #2 (permalink)
joe_bruin
LOAD "*",8,1
 
Join Date: Feb 2003
Location: la.ca.us
Posts: 254
joe_bruin is on a distinguished road
i would spend alot more time diagnosing a problem before you blame the compiler.

your problem is that this line:

cin >> responce;

only reads one char from the input, but the user entered 2 chars (example: 'y\n'). it is leaving the '\n' in the read buffer. the "getline(cin,date);" in the next loop is reading this '\n'. so, either absorb this newline char by another cin, or use a function more suited to reading the input you're expecting.

btw, it's spelled 'response'.
joe_bruin is offline   Reply With Quote