1.11M Members

cin.get mean?

 
0
 

what does cin.get function do??

 
0
 

It gets one character from the keyboard.

 
0
 

It gets one character from the keyboard.

Always one? This line is from the cplusplus.com example. I've never used it to get more than one myself:

cin.get (str,256);
 
0
 

Yes it can be used to extract more than one caracter. I always use cin.getline( ... ) for that since it has more options, you can tell it what terminating character to use.

You
This article has been dead for over six months: Start a new discussion instead
Post:
Start New Discussion
Tags Related to this Article