ReverseWords in c++