hello i have this piece of code
Code:
for(i=0; i<NUMROWS; i++) {
for(j=0; j<NUMCOLUMNS; j++)
if (tsafrir1[i][j]<tsafrir1[5][4]){
row=i;
col=j;
break;}break;}
the array consists of:"double" not "integer" numbers.
what i want it to do, is go through all the array and find me the smallest number, then put the row and column number inside row, col variables.
is this the right way to do it?
cuz i tried
Code:
tsafrir1[i][j]<tsafrir1
and that's a compile error.
does
Code:
(tsafrir1[i][j]<tsafrir1[5][4])
means his going through all the array? or just row5 col4?
thank you