Beckie

May 6, 2005, 11:57 PM

for some reason, I cannot get my function for finding the smallest number to work. I have one almost identical to this for finding the largest number and it works perfectly, and so I just switched from < to > and it isn't working. It's really strange. If you could help me out on this, I would greatly appreciate it.

Thank you so much!!

Take care,

Beckie

{

int row;

int col;

int smallest;

find smallest in each array of list

for (row = 0; row < 20; row++)

{

smallest = list[row].games[0];

for (col = 1; col < 15; col++)

if (smallest > list[row].games[col])

{

list[row].games[col] = smallest;

}

list[row].findlow = smallest;

col = 0;

}

Thank you so much!!

Take care,

Beckie

{

int row;

int col;

int smallest;

find smallest in each array of list

for (row = 0; row < 20; row++)

{

smallest = list[row].games[0];

for (col = 1; col < 15; col++)

if (smallest > list[row].games[col])

{

list[row].games[col] = smallest;

}

list[row].findlow = smallest;

col = 0;

}