|
#include <stdio.h>
#include <malloc.h>
// 학생의 학번과 이름을 기록하기 위한 구조체의 정의
typedef struct {
int student_id;
char name[20];
} STUDENT;
// 10명의 학생에 대한 정보를 기록하기 위한 배열의 선언
// 프로그램의 이해를 돕기 위해
|
- 페이지 3페이지
- 가격 1,500원
- 등록일 2006.05.02
- 파일종류 기타
- 참고문헌 없음
- 최근 2주 판매 이력 없음
|
|
sorting
quicksort(data,pivotIndex+1,n2); //pivot 오른쪽 sorting
}
}
public static int partition(int[] data, int first, int n){
int pivot = data[first]; //첫번째 값을 pivot 값으로
int tooBigIndex = first + 1; //pivot 다음 index에서 시작
int tooSmallIndex = first + n - 1;//맨 오른쪽 index에서
|
- 페이지 8페이지
- 가격 1,500원
- 등록일 2006.06.26
- 파일종류 한글(hwp)
- 참고문헌 없음
- 최근 2주 판매 이력 없음
|