Hello, i am trying to find the max value from a list of 10 values. here i have stored the double values for prices of items in numVal.There are 10 values in numVal i would like to find the max and min value of these numbers. getPrice(1) returns the ten double values. Any help is appretiated, thank you.
1 2 3 4
for(int i = 0; i < store.size(); i++) {
double numVal = this->store[i].getPrice(1);
}