tried out reverse_words in c++