Range within a range?

leogsd1:

  1. That's CODE tags, not QUOTE tags.
  2. That code will not compile. WTF is
      {

int temp = list[j];
       list[j] = list;
       list = temp;
     }

code complies just fine. that is part of my sorting algorithm to move the top three photocell values to the top and average them

It won't compile because you put it into quote tags, and I am not about to screw around with it to make it compile.
If you want help, read the stickies at the top of the forum and follow the guidelines.