Unix Programming - how to intialise a 4 dimensional array?

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > July 2005 > how to intialise a 4 dimensional array?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author how to intialise a 4 dimensional array?
bsder

2005-07-13, 7:55 am

Hi,

I found that I m having trouble intialise a 4-dimensional array.
Can anyone help please?

here is the array I want to create:

double array[3][1][1][1] = {
/* not sure how to fill in here */
};

Thanks
D
Steven Ding

2005-07-13, 6:02 pm

bsder wrote:
> Hi,
>
> I found that I m having trouble intialise a 4-dimensional array.
> Can anyone help please?
>
> here is the array I want to create:
>
> double array[3][1][1][1] = {
> /* not sure how to fill in here */
> };
>
> Thanks
> D


You may try
double array[3][1][1][1] =
{
{
{
{f1}
}
},
{
{
{f2}
}
},
{
{
{f3}
}
}
};

--
Steven Ding
dwj<at>asia.com
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com