• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

All you c++ buffs out there got a quick question.--PLEASE HELP

Raj

Senior member
//request and accept the item description
cout <<&quot;Please enter the item description: &quot;;
getline(cin, item_descr);



this is the code for accepting a string (item_descr).
How do i clear the buffer for the cin statement?
 
Raj,

I dunno the answer to your question. But I've got a question of my own. Why is it we find the time to do our C/C++ homework at ridiculously early/late hours of the night/morning?
 
cause that's when we work best, I guess.
I can't really program if its noisy, only
if its quiet and late. my mind just works
better at night i guess.

someone please answer this question.
 
Back
Top