C++ and Following Problem