Lexington High School Mathematics Math Dept. Front Page  | Student Links  | Family Links 
Introduction to C++, Kevin Kelly Kelly Front Page  | C++ Course Guide | C++ Assignments | C++ Info

Assignment 32: Reverse string

due Thursday 5/23 (not collected)

This assignment will not be collected for grading. However, it is still important that you do this assignment to get ready for the next assignment.

Write a program that inputs a string and outputs that string in reverse. For example, if the input is "Lexington High School" then the output should be "loohcS hgiH notgnixeL".

The following facts about strings will be helpful. Here, str represents a variable of type apstring.