Home › Forums › C Programming › Some problems in C++ › Re: Re: Some problems in C++
January 29, 2009 at 9:16 pm
#3516
GWILouisaxwzkla
Participant
cin.get() is a member function that gets the next character from the input stream:
1 2 3 4 5 6 7 | <br /> char ch;<br /> <br /> ch = cin.get(); //get a single character from the keyboard and store in 'ch'<br /> ch = cin.get(); //get a single character from the keyboard , but don't store it ( throw it out )<br /> <br /> |