0

Please describe th cin.get() function.

c++

29th Jan 2017, 12:43 PM
Krishan Nandan Goswami
Krishan Nandan Goswami - avatar
4 Respostas
+ 3
cin.get() reads in input, including whitespace. e.g. char c; cin.get(c); Can also be used like this: char c[40]; cin.get(c,40,'e'); Reads a number of chars with a terminating character. c doesn’t have 'e'. Keeps 'e' in input stream.
29th Jan 2017, 12:56 PM
Jafca
Jafca - avatar
+ 3
Post an example of want you're aiming to do, preferably in code or pseudo code.
29th Jan 2017, 1:01 PM
Jafca
Jafca - avatar
0
how it is used in a for loop
29th Jan 2017, 12:59 PM
Krishan Nandan Goswami
Krishan Nandan Goswami - avatar
0
how it could be used as a updater
29th Jan 2017, 1:00 PM
Krishan Nandan Goswami
Krishan Nandan Goswami - avatar