I might wonder if I have an int vector like this and I want to achieve the averagevalue for Element 0-8 wich is ((1+2+3+4+5+6+7+8+9) / 9) = 5
What method could be used for this ?
std::vector<int> Number(10);
Number[0] = 1;
Number[1] = 2;
Number[2] = 3;
Number[3] = 4;
Number[4] = 5;
Number[5] = 6;
Number[6] = 7;
Number[7] = 8;
Number[8] = 9;
Number[9] = 10;
Number[10] = 11;