All pastes #943232 Raw Edit

Miscellany

public text v1 · immutable
·published 2008-03-15 02:02 UTC
rendered paste body
void afficherParNote() {
	effacerEcran();
	int i, j, permute, dim;
	dim = total;
	cout << "Avant le tri" << endl;
	for (i = 0; i < total; i++) {
		cout << Etud[i].Note << " ";
	}
	for (i = 0; i < dim - 1; i++) {
		for (j = i + 1; j < dim; j++) {
			if (Etud[i].Note > Etud[j].Note) {
				permute = Etud[i].Note;
				Etud[i].Note = Etud[j].Note;
				Etud[j].Note = permute;
			}
		}
	}
	cout << endl << "Apres le tri" << endl;
	for (i = 0; i < dim; i++) {
		cout << Etud[i].Note << " ";
	}
}