[Screenshot 2] On using some functions to clear the buffer (like cin.ignore() and fflush(stdin) ), everything is working as required.
My questions are:
(If I am getting something wrong, please point out)
-Why does cin.get() automatically taking the "enter key" from the buffer (previous inputs)?
- Why do simple implementations of cins not follow this thing?
Like:
Expand|Select|Wrap|Line Numbers
- cout<<"enter something"; cin>>a;
- cout<<"enter something"; cin>>b;
- cout<<"enter something"; cin>>c;
- // Here the screen stops everytime