population_sacha/class_RLE_Image.cpp
// Deleting a run with a certain number

Deleting a run with a certain number
Deleting a run with a certain number
void RLE_Image::deleteRun (long number)
{
	int k;
	delete image_runs[number];
	for (k=number; k<runs_number-1; k++)
		image_runs[k]=image_runs[k+1];
	runs_number--;
}
void RLE_Image :: deleteRun ( long number ) { int k ; delete image_runs [ number ] ; for ( k = number ; k < runs_number - 1 ; k ++ ) image_runs [ k ] = image_runs [ k + 1 ] ; runs_number -- ; }
Deleting a run with a certain number
Deleting a run with a certain number
// Deleting the memory allocated for the run
 // Shifting all the elements
 // Reducing the total number of saved runs	
