[C] text file 정렬
input.txt 0, 5, 9, 7, 5, 3, 2, 4, 8, 6, 9, 10, 31, -1, 25, -5, -4, -9, 1, 2, 8, 6, 7, 4, 9, 1, 0, 20, 83, 147, -3, -8, -6, 2, -8, 14, 8, 3, 4, 85, -7, 69, 14, 85, 75, 1000, 32, -50, -44, -9009, -48, 68, 52 #include void bubble(int arr[], int num); void select(int arr[], int num); void main(){ int buf[100] = {0, }; FILE *fp = fopen("input.txt", "r"); int count = 0; int i = 0; while(!feof(fp)){ fs..
2017. 5. 13.