Yea I also tried that see:
for( col = 0; col < QUIZZES; col++ ){
for( row = 0; row < STUDENTS; row++ ){
if(qScores[row][col] < low){
low = qScores[row][col];
}
if(qScores[row][col] > high){
high = qScores[row][col];
}
// may not be in the right place?? Is it correctly reintialized?
high = 0;
low = 100;
}
printf("Quiz %i: %i - %i\n", col, low, high);
}
Output:
Quiz 0: 100 - 0 <-- Doesnt go through column at all...
Quiz 1: 100 - 0
Quiz 2: 100 - 0
Quiz 3: 100 - 0
Quiz 4: 100 - 0
Quiz 5: 100 - 0
Quiz 6: 100 - 0
Press any key to continue . . .

New Topic/Question
Reply




MultiQuote

|