Subj : question on cin.putback() .. To : borland.public.cpp.borlandcpp From : Stan Date : Sat Jan 01 2005 07:50 am The Code : #include using namespace std; int main() { cout << "input 'abcdef' :"; char c = cin.peek(); cin.putback('0'); char chararray[10]; cin >> chararray; cout << chararray; } The input : abcdef The output : 0bcdef Before executing the program, i suppose the output should be 0abcdef. What's the reason for the lost 'a'? Thx. .