From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: * X-Spam-Status: No, score=1.3 required=5.0 tests=BAYES_00,INVALID_MSGID, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b1eee69712c08551 X-Google-Attributes: gid103376,public From: mjsilva@my-deja.com Subject: Re: how to reverse output of a line using ada Date: 2000/11/21 Message-ID: <8veacc$pdb$1@nnrp1.deja.com>#1/1 X-Deja-AN: 696228136 References: <8ve870$4fkkm$1@ID-62217.news.dfncis.de> X-Http-Proxy: 1.1 x61.deja.com:80 (Squid/1.1.22) for client 206.169.137.75 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Tue Nov 21 17:11:47 2000 GMT X-MyDeja-Info: XMYDJUIDmjsilva Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.0 (compatible; MSIE 5.0; Windows 98; DigExt) Date: 2000-11-21T00:00:00+00:00 List-Id: In article <8ve870$4fkkm$1@ID-62217.news.dfncis.de>, "Florian Paulus" wrote: > Hi everybody! > > I got the following task: > > my program shall read a line and display it reversed. > > e.g. "World" should become "dlroW" > > is there any way to do this in Ada? Certainly -- this is possible in any general-purpose language. > i couldn't find any hint throughout the > net. just something like in reverse but i don't know how to use this. Think of the individual characters in the line as e.g. poker chips, lined up in order. How would you hand these poker chips to somebody, one at a time in reverse order? Once you can describe that process in detail you can write the code. BTW, if you don't know what poker chips are there in .de, just think of individual squares of paper with single characters written on them... Mike Sent via Deja.com http://www.deja.com/ Before you buy.