why does this file outputs 516?? The value of numbers is being read from random.txt that has 200 random numbers in it. I was expecting this to output 200 and NOT 516.. whats up with this?
while (inputFile >> number)
{
//number of numbers on the file
for (totalNumber = 0; totalNumber <= number; ++totalNumber)
totalNumber++;