so i have;

int main(){

ifstream input;

input.open("inputfile.txt");

int r,z=0;

while(input >>r){

z++;

}

int * b = new int[z];

}

Thats what i have so far. I go through the file to see how many integers are in it, then I allocate a chunk of memory to an integer array of size z (by using a pointer).

Now this is my problem. I need to go back through the input file and put the actual integers into this array, but I cannot use loop counter variables -- EVERYTHING has to be done with pointers. I then need to find the min number, max number, and median of the array -- all in pointers. I am having trouble thinking about how to go about this.

Appreciate any help,

thanks.

}