Program

pchero on November 9th, 2007

/*************************************************************************** *            Lotto.c * *  Sun Nov  4 01:12:21 2007 *  Copyright  2007  pchero21 *  pchero21@gmail.com ****************************************************************************/ /* *  This program is free software; you can redistribute it and/or modify *  it under the terms of the GNU General Public License as published by *  the Free Software Foundation; either version 2 of the License, or *  (at your option) […]

Continue reading about 로또 프로그래밍

pchero on October 10th, 2007

실행환경 : Visual C++ 6.0 #include <stdio.h> void quick_partition(int low, int high, int *pivotpoint);void quick_sort(int low, int high);void quick_swap(int *a, int *b); int S[10] = {10, 12, 14, 2, 6, 5, 9, 3, 7, 8}; // 정렬을 원하는 전역배열. int main(){ int i;  printf(“Before : “); for(i = 0; i < 10; i++)  printf(“%d “, S[i]); printf(“n”);  quick_sort(0, […]

Continue reading about Quicksort(빠른정렬) 알고리즘