Exercise: Reverse a String

Description

Write a program that

  • reads a string from standard input [1]

  • reverses that string [2]

  • outputs the reversed string to standard output [3]

$ ./reverse-string
abc               <--- user input, typed by you
cba               <--- program output

Footnotes

Dependencies

cluster_cxx03 C++ cluster_cxx03_stl Standard Template Library cluster_cxx03_stl_exercises STL: Exercises cluster_cxx03_stl_exercises_reverse_string Exercise: Reverse A String cxx03_stl_exercises_reverse_string_exercise Exercise: Reverse a String