From 9fc7ba71ac6292d242379f71887800a01be95ec2 Mon Sep 17 00:00:00 2001 From: halw Date: Sat, 27 Feb 2010 18:04:16 +0000 Subject: [PATCH] Created. Author:halw Date:2010-02-27T18:04:16.000000Z git-svn-id: https://svn.eiffel.com/eiffel-org/trunk@486 abb3cda0-5349-4a8f-a601-0c33ac3a8c38 --- .../examples/example-reverse-string.wiki | 47 +++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 documentation/current/examples/example-reverse-string.wiki diff --git a/documentation/current/examples/example-reverse-string.wiki b/documentation/current/examples/example-reverse-string.wiki new file mode 100644 index 00000000..682fbee2 --- /dev/null +++ b/documentation/current/examples/example-reverse-string.wiki @@ -0,0 +1,47 @@ +[[Property:title|Reverse a string]] +[[Property:link_title|Example: Reverse a string]] +[[Property:weight|0]] +[[Property:uuid|d888d308-6bb7-edd5-ee25-92d04b5658d3]] + +{{underconstruction}} + + +__NOTOC__ + +==Problem Description== + +Reverse the order of the characters in a give string of characters. + +==Problem Source== + +[http://rosettacode.org/wiki/Reverse_a_string Rosetta Code] + +==Solution== + + +class + APPLICATION +create + make +feature + make + -- Demonstrate string reversal. + do + my_string := "Hello World!" + my_string.mirror + print (my_string) + end + my_string: STRING + -- Used for reversal +end + + + +==Output== + + +!dlroW olleH + + + +