C++ program to reverse all words in a string