Change the code snippet the following way
// enum { BubbleSort = 16, /*...*/ }
else if ( selection == BubbleSort )
{
for( int last = arraySize; last > 1 ; --last )
{
for ( int first = 1; first < last; ++first )
{
if ( theArray[first] < theArray[first - 1] )
{
swap( theArray[first], theArray[first - 1] );
}
}
}
}