와! 버블정렬! 어제 오름&내일차순 정렬 배우는줄알고 좋아했다가 알고보니 그냥 정렬 순서만 역순으로 바꾸는 법이었는데, 오늘에서야 비로소 오름차순 정렬을 배운다!!! 순서를 결정하는 정렬중 가장 널리 알려진 정렬 알고리즘은 버블 정렬(Bubble Sort)이 있다. 이 정렬방법은 이웃 자료들을 비교하여 순서 바뀐 원소를 교환하는 방법이다. #include #include void bubble(char *, int); int main(){ char str[80]; gets(str); bubble(str, strlen(str)); printf("재정렬한 결과 %s", str); } void bubble(char *item, int count){ int pass =0; int change =1; int j; ..