+ 1

C++: Someone can explain me for what is "cin"? I forgot in what lesson it was.

Im Spanish, por si alguien puede explicarlo en español.

9th Dec 2017, 10:27 AM
willy
willy - avatar
2 Answers
+ 5
cin is used to take input from user. You cannot use cin to take an string. E.g int i; cin>>i; char arr[10]; //An string gets() and puts() can be used for taking and printing string respectively.
9th Dec 2017, 10:52 AM
Kartikey Sahu
Kartikey Sahu - avatar