0

Difference between cin and cin. Get

17th Nov 2019, 5:10 PM
Usha Rani
Usha Rani - avatar
3 Réponses
+ 3
In short 'cin' reads the word without space if space is in the inputted value then it not going to take value after space And 'cin.get()' takes the whole string it may also have space and the last charachter of the string will attached by eof(end of line). Source: https://stackoverflow.com/q/29630513/9973584
17th Nov 2019, 5:51 PM
Chirag Kumar
Chirag Kumar - avatar
+ 2
I guess you mean cin and cout Cin is used to read input from the standard input device usually the keyboard Cout is used to output data to the standard output device, that is, the screen
17th Nov 2019, 5:14 PM
SUPERFLY🦅
SUPERFLY🦅 - avatar