View Single Post
  #1 (permalink)  
Old 03-08-2008, 12:46 PM
JJJIrish05 JJJIrish05 is offline
Newbie
 
Join Date: Mar 2008
Posts: 10
Rep Power: 0
JJJIrish05 is on a distinguished road
Default Array manipulation Question in C++

Ok so i'm writing a program to sort an array using heap sort. I have my main function that gets the information on what the array is, then using a function to sort it. The function is defined as: void maxheapify(int A[], int i, int len)

So I've figured out that the array doesn't really get modified when I pass the array into the function. But I can't just do A=maxheapify(A, i, len) either because in maxheapify A is an int*... And if I turn the A in main to an int* then I get a whole crap load of errors....

So anyone have any suggestions? I can post my whole code if need be.
Reply With Quote

Sponsored Links