Link to home
Start Free TrialLog in
Avatar of sunraj
sunraj

asked on

cin

cin does not accept white space characters.
so we have used,
               char tmp[30],ch;  
               cin >> ch;
               cin.getline(tmp,30);

But after the first 'cin' which terminates on Carriage Return('Enter'), the next statement cin.getline() is not
accepting the value for tmp...

what is the solution.... regards
ASKER CERTIFIED SOLUTION
Avatar of pagladasu
pagladasu

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial