From a0cb574e8faf78596730b7a47059ffa74b38cb86 Mon Sep 17 00:00:00 2001 From: halw Date: Mon, 1 Mar 2010 17:54:20 +0000 Subject: [PATCH] Author:halw Date:2010-03-01T17:50:15.000000Z git-svn-id: https://svn.eiffel.com/eiffel-org/trunk@490 abb3cda0-5349-4a8f-a601-0c33ac3a8c38 --- .../examples/example-reverse-string.wiki | 26 ++++++++++++++++++- .../examples/introduction-examples-book.wiki | 6 +---- 2 files changed, 26 insertions(+), 6 deletions(-) diff --git a/documentation/current/examples/example-reverse-string.wiki b/documentation/current/examples/example-reverse-string.wiki index d4e6e7d4..2db6421f 100644 --- a/documentation/current/examples/example-reverse-string.wiki +++ b/documentation/current/examples/example-reverse-string.wiki @@ -2,7 +2,6 @@ [[Property:link_title|Example: Reverse a string]] [[Property:weight|0]] [[Property:uuid|d888d308-6bb7-edd5-ee25-92d04b5658d3]] - {{underconstruction}} @@ -14,6 +13,31 @@ Reverse the order of the characters in a give string of characters. [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 + + diff --git a/documentation/current/examples/introduction-examples-book.wiki b/documentation/current/examples/introduction-examples-book.wiki index 324c1b52..20ee2fa6 100644 --- a/documentation/current/examples/introduction-examples-book.wiki +++ b/documentation/current/examples/introduction-examples-book.wiki @@ -22,11 +22,7 @@ The purpose of the examples in this book, then, is two-fold. First, we get a set Sites like Rosetta Code and [http://en.literateprograms.org/LiteratePrograms:Welcome Literate Programs] offer a wide variety of programming problems or tasks for comparison of languages and techniques. Rosetta Code provides an index to the [http://rosettacode.org/wiki/Reports:Tasks_not_implemented_in_Eiffel tasks not yet implemented in Eiffel]. -This book should include, but not be limited to, certain of the problems used as challenges by program chrestomathies. - -Each child page of this main page will support a list of children. Each of those represents a single programming problem. Individual solutions reside in pages which are children of their problem page. This organization is depicted in the figure below. +This book should include, but not necessarily be limited to, certain of the problems used as challenges by program chrestomathies. -[[Image:Examples book organization]] -