|
/*Quicksort ! Pointer version with macros.*/
#define swap(x,y) {int t; t = x ; x = y ; y = t;}
#define order(x,y) if(x>y) swap(x,y)
#define o2(x,y) order(x,y)
#define o3(x,y,z) o2(x,y); o2(x,z); o2(y,z)
typedef enum {yes, no} yes_no;
static yes_no find_pivot(int *left, int *right, int *
|
- 페이지 3페이지
- 가격 2,000원
- 등록일 2011.02.16
- 파일종류 압축파일
- 참고문헌 없음
- 최근 2주 판매 이력 없음
|
|
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <math.h>
#define LOOP 10
#define MAX 1000
int list1[MAX], list2[MAX];
int n, count, left, right;
int selection_sort(int list1[], int n);
void quicksort(int list2[], int left, int right);
void
|
- 페이지 1페이지
- 가격 800원
- 등록일 2012.07.08
- 파일종류 기타
- 참고문헌 있음
- 최근 2주 판매 이력 없음
|
|
#include <stdio.h>
#include <malloc.h>
// 학생의 학번과 이름을 기록하기 위한 구조체의 정의
typedef struct {
int student_id;
char name[20];
} STUDENT;
// 10명의 학생에 대한 정보를 기록하기 위한 배열의 선언
// 프로그램의 이해를 돕기 위해
|
- 페이지 3페이지
- 가격 1,500원
- 등록일 2006.05.02
- 파일종류 기타
- 참고문헌 없음
- 최근 2주 판매 이력 없음
|
|
#include<stdio.h>
#include <time.h>
clock_t before;
void start_time(void) {
before = clock();
}
double prn_time(void) {
double user_time;
user_time = (double)(clock() - before)/CLOCKS_PER_SEC;
before = clock();
printf(\"Time = %3.3lf seconds \n\", user_time);
return user_time;
|
- 페이지 3페이지
- 가격 700원
- 등록일 2011.11.21
- 파일종류 기타
- 참고문헌 없음
- 최근 2주 판매 이력 없음
|
|
1; i <= high; i++)
if(S[i] < pivotitem) {
j++;
temp = S[i];
S[i] = S[j];
S[j] = temp;
}
pivotpoint = j;
temp = S[low];// pivotitem을 pivotpoint에 넣음.
S[low] = S[pivotpoint];
S[pivotpoint] = temp;
}
|
- 페이지 2페이지
- 가격 700원
- 등록일 2004.09.11
- 파일종류 한글(hwp)
- 참고문헌 없음
- 최근 2주 판매 이력 없음
|