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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.