Colin JN Breame wrote:
> I'm trying to figure out whether this way of passing arrays is valid. It
> seems to work however, I'm experiencing problems with another program that
> might be related.
> If this is not valid, how else can it be done? Is an array of
> double==double==double==double** ?
In parameter declaration 'double' is equivalent to 'double',
but not to 'double' (which is incorrect syntax) or 'double**'.
'double' is equivalent to 'double', which is equivalent to
'double(*)' - a pointer to an array of 3 'double's.
This is not legal C++. 'num' is not an Integral Constant Expression
(ICE) and you can't use non-ICE array sizes in C++. If this code is
supposed to work with your compiler but doesn't, consult your compiler's
documentation or try asking in the compiler-specific newsgroup.