comp.lang.ada
 help / color / mirror / Atom feed
From: Robert A Duff <bobduff@shell01.TheWorld.com>
Subject: Re: Need Help On Ada95 Problem
Date: Fri, 10 Feb 2012 09:30:10 -0500
Date: 2012-02-10T09:30:10-05:00	[thread overview]
Message-ID: <wccobt67oct.fsf@shell01.TheWorld.com> (raw)
In-Reply-To: jh37bq$sgv$1@dont-email.me

"Alex" <alex@foo.invalid> writes:

> This is a homework assignment and I think the translation lookup table
> is provided as a string, not an array.

As I understood the problem statement, the input and output
are of type String.  Writing the translation table is the
homework assignment, and String makes no sense for that.
But I might have misunderstood.

>... As far as I know, there is no
> way in Ada to make string indexing start at 0.

Well, "X: String(0 .. -1000);" creates a String starting at zero,
but that's beside the point here.

> You're right, an array of chars indexed starting at 0 would be better,

That's not what I had in mind, but I'll leave it at that.

Maybe the OP would like to post his solution when it's all done.

> but at this point of the course, I don't think they've covered arrays.
> I think they use strings to introduce the concepts and then go into
> arrays later.

- Bob



  reply	other threads:[~2012-02-10 14:30 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-09  1:03 Need Help On Ada95 Problem Will
2012-02-09  1:51 ` Robert A Duff
2012-02-09  2:01 ` Shark8
2012-02-10  1:36   ` BrianG
2012-02-10  2:22     ` Shark8
2012-02-10  5:32       ` Alex
2012-02-10 15:19         ` Shark8
2012-02-10 15:45           ` Alex
2012-02-10 20:07           ` Robert A Duff
2012-02-12 19:40             ` Will
2012-02-12 19:42               ` Will
2012-02-12 22:26               ` Robert A Duff
2012-02-13  0:41                 ` Will
2012-02-13  0:43                 ` Nasser M. Abbasi
2012-02-10  5:45       ` Alex
2012-02-10 13:29         ` Robert A Duff
2012-02-10 13:50           ` Alex
2012-02-10 14:30             ` Robert A Duff [this message]
2012-02-10 15:32               ` Alex
2012-02-10 20:03                 ` Robert A Duff
2012-02-13  3:28       ` BrianG
2012-02-10  8:47   ` Simon Wright
2012-02-09  3:38 ` Alex
     [not found]   ` <90a10801-440b-4a31-88d0-f0f7c17137f1@eb6g2000vbb.googlegroups.com>
2012-02-09 13:35     ` Alex
replies disabled

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