+ 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.
2 ответов
+ 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.