|
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'.
|