Phrase reversals: Difference between revisions
Content added Content deleted
m (added related tasks.) |
m (→{{header|C++}}: duplicate include) |
||
Line 568: | Line 568: | ||
=={{header|C++}}== |
=={{header|C++}}== |
||
<lang cpp>#include <iostream> |
<lang cpp>#include <iostream> |
||
#include <iostream> |
|||
#include <vector> |
#include <vector> |
||
#include <algorithm> |
#include <algorithm> |
||
Line 588: | Line 587: | ||
reverse_copy(words.begin(), words.end(), std::ostream_iterator<std::string>(std::cout, " ")); |
reverse_copy(words.begin(), words.end(), std::ostream_iterator<std::string>(std::cout, " ")); |
||
std::cout << '\n' ; |
std::cout << '\n' ; |
||
⚫ | |||
} |
|||
⚫ | |||
{{Out}} |
{{Out}} |
||
<pre>Input : rosetta code phrase reversal |
<pre>Input : rosetta code phrase reversal |