ECE209_sorting.pptx
ECE 209 Fall 2012 Sorting
10/22/2011
17
Sorting Non-Integer Items
void selectSort(int a[], int n) {
int i, j, min, tmp;
for (i=0; i
#define EXCH(A,B) {Item tmp; tmp=A; A=B; B=tmp;}
ECE209_sorting.pptx
ECE 209 Fall 2012 Sorting
10/22/2011
17
Sorting Non-Integer Items
void selectSort(int a[], int n) {
int i, j, min, tmp;
for (i=0; i
#define EXCH(A,B) {Item tmp; tmp=A; A=B; B=tmp;}