for some reason the following function has return numbers of error such as
1. new types may not be defined in a return type
2. two or more data types in declaration of `initialize'
3. ambiguates old declaration `GrowableArray initialize(GrowableArray&)'
void initialize(GrowableArray &a)
{ unsigned zero=0;
a.elements=zero;
a.element=NULL; }
and this is the struct GrowableArray
struct GrowableArray
{ unsigned elements;
double * element; }
can someone explain to me what is wrong with the function??
also that in the initialize function I had to assign a new value to make a.elements to 0
is there another way around??