View Single Post
  #3 (permalink)  
Old 06-23-2006, 08:16 PM
intelligent_14's Avatar
intelligent_14 intelligent_14 is offline
Junior Member
 
Join Date: Mar 2006
Location: Tehran/Iran
Posts: 24
intelligent_14 is on a distinguished road
Quote:
Originally Posted by elihayun
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];
}
thanks Elihayun, but this function return only one number (a[shift]) i wants it to return all of "a[]" array not a[shift]
__________________
there wil be nothig for a person exept his efforts (Emam Ali Alayhesalam)
M.A.Gh
Reply With Quote