小小鸟的林子

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2011年9月27日

摘要: #include <stdlib.h>#include <stdio.h>typedef int ElementType;void swap( int *a, int *b ){ int temp; temp = *a; *a = *b; *b = temp;}ElementType middian( ElementType a[], int start, int end ){ int center = ( start + end ) / 2; if( a[start] > a[center] ) swap( &a[start], &a[cen.. 阅读全文
posted @ 2011-09-27 10:44 林中鸟 阅读(208) 评论(0) 推荐(0)