Go to the next instruction without pressing enter

Posted by louie on Stack Overflow See other posts from Stack Overflow or by louie
Published on 2010-12-24T03:37:50Z Indexed on 2010/12/24 3:54 UTC
Read the original article Hit count: 153

Filed under:

hi guyz

my problem is trying to go to the next instruction without pressing enter.. this is my code

cout<<"Enter Date Of Birth: ";
cin>>day;
cout<<"/";
cin>>month;
cout<<"/";
cin>>year;

by only providing 2 digit number for day, i want the next instruction to get printed without me pressing enter, and so goes to the rest month and year. since year is the last, i can press enter after that.

© Stack Overflow or respective owner

Related posts about c++