Passing a double array to a function

Status
Not open for further replies.
Nope, code in the OP wasn't changed.

And I took a look today finally...

Yours works CarnageX. However...
All I changed from my original code was adding the
Code:
  num = new double [max];                  //initialize the space for the array!
line, which made it work perfect.

Thanks guys :thumbsup:
 
Status
Not open for further replies.
Back
Top Bottom