const int MAX_LENGTH = 30; typedef char stringType[MAX_LENGTH+1]; void WriteBackward(stringType S, int Size) // --------------------------------------------------- // Writes a character string backward. // Precondition: The string S contains Size // characters, where Size >= 0. // Postcondition: S is written backward, but remains // unchanged. // --------------------------------------------------- { if (Size > 0) { // write the last character cout << S[Size-1]; // write the rest of the string backward WriteBackward(S, Size-1); // Point A } // end if // Size == 0 is the base case - do nothing } // end WriteBackward