// kitten.cc -- A little cat // Purpose: to exercise your brain in the area of C++ input/output // Three questions to answer. // (1) What does it do? // (2) Why? // (3) What would happen if it used cin>>c rather than cin.get(c) // in both places? #include int main() { char c; cin.get(c); while( ! cin.eof() ) { cout.put(c); cin.get(c); }//end while return; }//end main