taking char input in c++