TEAM-ADA Archives

Team Ada: Ada Programming Language Advocacy


Options: Use Classic View

Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Topic: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Alexandre Crozat <[log in to unmask]>
Tue, 6 May 1997 14:53:11 -0300
text/plain (17 lines)
Learning Ada by onesself in only two months is hard, but I'm getting at it...
Could someone help me with this one:

Is it possible to initialize a multi-dimensionnal array during its definition?
For single-dimensional arrays, the answer is yes:
   Init : array (0 .. 3) of Integer := (0 => 1, others => 0)
but what about a 2d array which I would like to fill with zeros?

Thanks for your help.

_______________________________________ ...
Alexandre Crozat
2 adresses -|> 2 reasons to reply!  :-)
[log in to unmask]
[log in to unmask]