comp.lang.ada
 help / color / mirror / Atom feed
* How to do it in Ada ?
@ 2001-07-16  3:33 Tomasz Wegrzanowski
  2001-07-16  5:31 ` Jeffrey Carter
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Tomasz Wegrzanowski @ 2001-07-16  3:33 UTC (permalink / raw)


int main(int argc, char **argv)
{
    int *x;
    int n;
    
    n = (argc==1)?1:atoi(argv[1]);
    x = malloc (n*sizeof(int));
    for (x=0;x<n;x++)
	x[i]=0;
    
    /* ... */
}

Something like that ... how to do such dynamic array allocation in Ada ?



^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2001-07-20  5:39 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-07-16  3:33 How to do it in Ada ? Tomasz Wegrzanowski
2001-07-16  5:31 ` Jeffrey Carter
2001-07-16  6:41 ` Al Christians
2001-07-16  6:51 ` tmoran
2001-07-16 16:56   ` Mark Lundquist
2001-07-16 18:42     ` Nonsense (was Re: How to do it in Ada ?) Mark Lundquist
2001-07-16 22:20       ` Jeffrey Carter
2001-07-17  0:13       ` Ken Garlington
2001-07-17  3:53       ` Robert Dewar
2001-07-16 22:18     ` How to do it in Ada ? Jeffrey Carter
2001-07-17  4:06       ` tmoran
2001-07-20  5:39     ` David Thompson
2001-07-16 17:37   ` Ken Garlington

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