Home Forums C Programming Some problems in C++ Re: Re: Some problems in C++

#3516
GWILouisaxwzkla
Participant

cin.get() is a member function that gets the next character from the input stream:


char ch;

ch = cin.get(); //get a single character from the keyboard and store in 'ch'
ch = cin.get(); //get a single character from the keyboard , but don't store it ( throw it out )