comp.lang.ada
 help / color / mirror / Atom feed
From: tmoran@acm.org
Subject: Re: strings and multidimensional arrays
Date: Sun, 12 Oct 2003 06:27:23 GMT
Date: 2003-10-12T06:27:23+00:00	[thread overview]
Message-ID: <fv6ib.740552$Ho3.181861@sccrnsc03> (raw)
In-Reply-To: 3F88E586.5060809@chartermi.net

> Can I create a multi-dimensional array.. and then at say row (4) ,
> column (5)  have an entirely new string built?
  A : array(1 .. 10, 1 .. 100) of string(1 .. 11);
is a 2D array of 11 character strings, and you can say:
  A(4,5) := "hello world";
In general you can have an n-dimensional array of whatever, where whatever
is a character, a string, a bounded string, an integer, a record, another
array, etc.  Take a look at www.adapower.com for links to books, paper
and online, and tutorials, and of course lots of source code you can
peruse for examples.



  reply	other threads:[~2003-10-12  6:27 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-12  4:05 strings and multidimensional arrays Andrew
2003-10-12  5:24 ` Andrew
2003-10-12  6:27   ` tmoran [this message]
2003-10-12 14:16   ` Robert I. Eachus
2003-10-12 19:34     ` Jeffrey Carter
2003-10-13  0:02       ` Robert I. Eachus
2003-10-13  3:14         ` Jeffrey Carter
2003-10-13 17:05           ` Robert I. Eachus
2003-10-13 18:49             ` Martin Dowie
2003-10-13 21:47               ` Mark Lorenzen
2003-10-14  1:10             ` Jeffrey Carter
2003-10-14 15:29               ` Robert I. Eachus
2003-10-12 21:01     ` Andrew
2003-10-13 13:59 ` Rodrigo Garcia
  -- strict thread matches above, loose matches on Subject: below --
2003-10-14  6:24 christoph.grein
replies disabled

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