comp.lang.ada
 help / color / mirror / Atom feed
From: "Paul Cass" <paulcass@bigpond.com>
Subject: Re: how to reverse output of a line using ada
Date: 2000/11/22
Date: 2000-11-22T00:00:00+00:00	[thread overview]
Message-ID: <E9NS5.141907$e5.73748@newsfeeds.bigpond.com> (raw)
In-Reply-To: 8ve870$4fkkm$1@ID-62217.news.dfncis.de

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" <mailme@ascat.de> 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
>
>
>






      parent reply	other threads:[~2000-11-22  0:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-11-21  0:00 how to reverse output of a line using ada Florian Paulus
2000-11-21  0:00 ` Ted Dennison
2000-11-21  0:00 ` Adrian Knoth
2000-11-21  0:00 ` mjsilva
2000-11-22  0:00 ` Paul Cass [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox