Original Post
If i have a function, say CreateArray() that creates an array but i want to return the array to use it in the part of a project that calls the function how would i store the returned array?
i tried:
Array[index]=CreateArray();
CreateArray()
{
blah blah
return NewArray[index];
}
and also
NewArray=CreateArray;
CreateArray()
{
blah
return Array;
}
The only way i have been able to do this is if NewArray is a global variable
and CreateArray() changes it.
Is there a better way to do it?
Thanks for any help
"People spend too much time thinking about the past, whatever else it is, its gone"-Mel Gibson, Man Without A Face