He was asking to do something impossible, i have to find it , its in the first couple of pages in the problems or exercises of that book, using only cin>>(variable) to extract something which only cin.get() was capable of from input stream, its was a joke of a question.