View Single Post
  #1 (permalink)  
Old 02-05-2006, 03:38 PM
charliev charliev is offline
Junior Member
 
Join Date: Jan 2006
Posts: 25
charliev is on a distinguished road
Function that returns an Array?


Hello all,

With all the questions I've been posting, it's obvious I'm a newbie... thanks for all the help.

I'd like to create a FUNCTION that returns an ARRAY, but not sure of the syntax. I tried this:

double function_name[] (double var1, double var2)
{
// do something to create array here
}

But it didn't like the square brackets.

Also, how do you DECLARE and INIAILIZE a 2 dimentional array?

Thanks for the help!
-charliev




Reply With Quote