Print

Print


Hello,
if I want to generate the following arrays
[0 0], [0 1],...,[0, n2], [1, 0],...[n1, n1],
I can of course use two innested do cycles

integer :: a(1:2)
do i=1,n1
do j=1,n2
a(1)=i
a(2)=j
end do
end do

and of course each array exist only in the do cycles because
it is rewritten. But if I want to expand the size of the 
array creating [0 0 0], [0 0 1] and so on I should change
my program and use three do dycles. 
I want to do a general program for creating array of 
that type but with an arbitrary number of element.
How can I do?
I think that somthing like linked list can help me,
but I don't know how to use them.
Thanks.


_________________________________________________________________________
la tua email gratuita e per sempre su http://www.freemail.it (anche POP3)


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%