C++: Someone can explain me for what is "cin"? I forgot in what lesson it was. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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
1 Answer
+ 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