![]() |
Data Abstraction and Problem Solving with C++Walls and Mirrorsby Frank M. Carrano |
![]() |
c02p113b.cppGo to the documentation of this file.00001 00020 void writeBackward(string s, int size) 00021 { 00022 if (size > 0) 00023 { // write last character 00024 cout << s.substr(size-1, 1); 00025 writeBackward(s, size-1); // write rest 00026 } // end if 00027 } // end writeBackward |