View Single Post
  #2 (permalink)  
Old 06-23-2006, 02:46 PM
elihayun's Avatar
elihayun elihayun is offline
Senior Member
 
Join Date: Jan 2006
Posts: 354
elihayun is on a distinguished road
Quote:
Originally Posted by intelligent_14
Hi everybody

I'm wondering how i can define one special function that returns an Array
All definable function only return one variable not Array!

can anyone help me?

Thanks
As far as I know there is no way to return an array, but u can use the following technique

double MyFunc(int shift)
{
static double a[100];
static bool firstTime = true;
if (firstTime)
{
firstTime = false;
<fill up the array>
}
return a[shift];
}
Reply With Quote