[C언어] SHELLSORT program
페이지 정보
작성일 23-03-09 23:25
본문
Download : [C언어]SHELLSORT 프로그램.zip
순서
Download : [C언어]SHELLSORT 프로그램.zip( 41 )
[C언어] SHELLSORT program
shellsort를 이용한 정렬 program.
레포트 > 기타
char *major; // 전공
입력받은 각 정보들을 정렬하여 준다.
int str_cmp(const people a, const people b); // 이름을 비교하는 함수.
#define MAXNAME 10 /*이름의 최대 크기*/
typedef struct _people { // 학생 자력이 입력될 변수.
people *Save_Data(people *t, people *s, int n); // 자료를 다른 변수로 옮기는 함수.
#define MAXMAJOR 9 /*전공의 최대 크기*/
void print_Data(int *index, people *t, int n); // 자료를 출력하는 함수.
void shell_sort(int *index, people *base, int nelem, int (*fcmp)(const people, const people)); // 정렬 함수.
} people;
SHELLSORT 프로그램
char *Get_name(char *t); // 이름을 저장하는 함수.
int double_cmp(const people a, const people b); // 학점을 비교하는 함수.
설명
double point; // 학점
char *name; // 이름
다.
people *Get_DataFromFile(char *s, int *cnt); // 파일로 부터 자료를 받아오는 함수.
char *Get_major(char *t); // 전공을 저장하는 함수.
shellsort를 이용한 정렬 프로그램. 입력받은 각 정보들을 정렬하여 준다.


