David Shay sends in a rather innefficient way of summation in C++: to figure out how big 10 is, start from 1 and count to 10, each time u say a number, extend a finger. Count your fingers, and you should have ten!

Yes, this is C++. Sure, a VB “coder“ could do the same thing ... but I think this should get double WTF-points for not being in BASIC ...

     // calculate total num. of measures
     int numMeasures = 0;
     Dicos_debugInfo("scanDataList %d.", pmData.scanDataList.length()); 
 
     for (unsigned int i = 0; i < pmData.scanDataList.length(); i++)
     {
        Dicos_debugInfo("numMeasures %d.", pmData.scanDataList[i].numMeasures); 
        for (int j = 0; j < pmData.scanDataList[i].numMeasures; j++)
        {
           numMeasures++;
        }
     }