All pastes #608832 Raw Edit

Something

public text v1 · immutable
·published 2007-07-08 15:01 UTC
rendered paste body
void stripHL(double judges, double scores[ROW_SIZE][COL_SIZE], double &high)
{
	for (int row = 0; row < ROW_SIZE; row++)
	{
	int hcol = 0, lcol = 0; // high col, low col
	double h=0.0;
	double l=10.0;

		for (int col = 0; col < judges; col++)
		{	
			
			if (scores[row][col] < l)
			{
				l = scores[row][col];
				lcol = col;
			}
			
			if (scores[row][col] > h)
			{
				h = scores[row][col];
				hcol = col;
			}

		}
	scores[row][lcol] = 0.0; // Change lowest score //for each row
	scores[row][hcol] = 11.0; // Change highest score
	}
}