First of all, using a char[255] for your answers is unduly limiting. Why not use a std::string which can be of any length, instead?

Second, the normal behavior of operator>> is to stop at any...