comp.lang.ada
 help / color / mirror / Atom feed
From: Adrian Knoth <adi@thur.de>
Subject: Re: délcarer un array sans indices.
Date: 20 Mar 2005 15:09:15 GMT
Date: 2005-03-20T15:09:15+00:00	[thread overview]
Message-ID: <slrnd3r4gr.sui.adi@ppc201.mipool.uni-jena.de> (raw)
In-Reply-To: pan.2005.03.20.14.45.23.545497@nospam.a2lf.org

Jean-Baptiste CAMPESATO <camje_lemon@nospam.a2lf.org> wrote:

> Scuse for post in French, my problem is not exactly that.
[..]
> How can i create a Array without range and after give to the programme
> the range?

Exactly how I've shown it: ask the user for a,b,c,d (i.e. Get_Line)
and call your working function (something) with these bounds.

Or if you don't want to put the main work into a separate function,
use the ptr-approach:

   type matrice_ptr is access Matrice;
   
   gauss : matrice_ptr;  --  empty, no size

begin
  Get (a); Get (b); Get (c); Get (d);
  gauss := new Matrice (a .. b, c ..d);
  [..]

-- 
mail: adi@thur.de  	http://adi.thur.de	PGP: v2-key via keyserver

Wer die H�nde in den Scho� legt, mu� noch lange nicht unt�tig sein



  reply	other threads:[~2005-03-20 15:09 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-20 14:26 délcarer un array sans indices Jean-Baptiste CAMPESATO
2005-03-20 14:31 ` Jean-Baptiste CAMPESATO
2005-03-20 14:33 ` Jean-Baptiste CAMPESATO
2005-03-20 14:36 ` Adrian Knoth
2005-03-20 14:45   ` Jean-Baptiste CAMPESATO
2005-03-20 15:09     ` Adrian Knoth [this message]
2005-03-20 15:12       ` Jean-Baptiste CAMPESATO
2005-03-20 15:49       ` Marius Amado Alves
replies disabled

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