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,FREEMAIL_FROM, INVALID_MSGID 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: "Paul Cass" Subject: Re: how to reverse output of a line using ada Date: 2000/11/22 Message-ID: #1/1 X-Deja-AN: 696596789 References: <8ve870$4fkkm$1@ID-62217.news.dfncis.de> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Trace: newsfeeds.bigpond.com 974888676 139.134.124.186 (Wed, 22 Nov 2000 21:24:36 EST) Organization: Telstra BigPond Internet Services (http://www.bigpond.com) X-MSMail-Priority: Normal NNTP-Posting-Date: Wed, 22 Nov 2000 21:24:36 EST Newsgroups: comp.lang.ada Date: 2000-11-22T00:00:00+00:00 List-Id: There must be lots of ways to do this including reading into an array and outputting in reverse. However I suspect your tutor/lecturer wants you to play with the "pred" and "succ" attributes. You need to read about object attributes, study the text_io package and simple array management. Go try some algorithms - programming is meant to fun! Cheers Paul "Florian Paulus" wrote in message news:8ve870$4fkkm$1@ID-62217.news.dfncis.de... > 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? i couldn't find any hint throughout the > net. just something like in reverse but i don't know how to use this. > > thank you in advance > > Florian Paulus > > >