void FrequencyTable( const int arr[], int arSize, int r ){ cout << "Frequency:" << endl; for ( int i = 0; i < arSize; i++ ) { float p = float ( arr[i] * 100 ) / r; if ( p != 0 ) { cout.setf( ios_base :: fixed ); cout.precision( 2 ); } cout << i + OFF_SET << " " << p << "%" << endl; cout.unsetf( ios_base :: fixed ); }}
-------------------------------
Did someone say "banana"?
..-=gLaDiAtOr=-..