Mega Code Archive

 
Categories / C++ / Console
 

Using get() with parameters

#include <iostream> using namespace std; int main() {    char a, b, c;    cout << "Enter three letters: ";    cin.get(a).get(b).get(c);    cout << "a: " << a << "\nb: " << b << "\nc: " << c << endl;  return 0; }