All pastes #185710 Raw Edit

Miscellany

public cpp v1 · immutable
#185710 ·published 2006-09-29 07:08 UTC
rendered paste body
int least_under_5(Population p[], int size){    int least = 0;    for (int i = 0; i < size; i++)    {	if ( (float)p[i].get_age(LessThan5)/p[i].total_pop()	<  (float)p[least].get_age(LessThan5)/p[least].total_pop() )		least = i;    return least;}