02/21/00
COM1100 Winter2000 Yuhong Yin
5
Selection Sort Implementation
n
We will implement three functions
n
void swap(int& x, int& y);
n
int smallestElement(int list[], int size, int startIndex);
n
int SelectionSort(int list[], int size);