Selection Sort1 selection sort selection sort 1. 소스 #include int main() { int array[100], n, c, d, position, swap; printf("Enter number of elements\n"); scanf("%d", &n); printf("Enter %d integers\n", n); for ( c = 0 ; c array[d] ) position = d; } if ( position != c ) { swap = array[c.. 2016. 7. 12. 이전 1 다음