当前位置: 代码迷 >> C语言 >> [求助]数字排序(selection sort)
  详细解决方案

[求助]数字排序(selection sort)

热度:678   发布时间:2006-07-21 23:47:57.0
[求助]数字排序(selection sort)

使用下列数据:
int x[MAX_ITEMS] = { 8,5,2,13,1,17,6,4,9,15,7,3 } ;
selection sort(选择性排序)

要求用到下列三种操作程序:
First user-defined function performs general operations of the particular algorithm.
Second user-defined function performs array display operation.
Third user-defined function performs actual sorting algorithm.

void selectionFunc( )
{
int x[MAX_ITEMS]={8,5,2,13,1,17,6,4,9,15,7,3} ;
// declare array
// display unsorted array
selectionSort(x[ ], item_size) ;
// display sorted array
}

void displayArray(int x[ ], int len)
{
int index;
for (index=0 ; index<len ; ++index)
{
// printf statement
}
}

void selectionSort(int x[ ], int size)
{
// sorting algorithm
}


我手上有流程图,和步骤列表,不知道怎么传!
请大家先帮忙看看这个,我在想办法!
急用!!!



搜索更多相关的解决方案: sort  selection  数字  

----------------解决方案--------------------------------------------------------
提示: 作者被禁止或删除 内容自动屏蔽

2006-07-21 16:40:33
angelfishbb

等 级:新手上路
帖 子:6
专家分:0
注 册:2006-7-7
  得分:0 
没有,不是,就是c语言程序
数字对比排序!
----------------解决方案--------------------------------------------------------
提示: 作者被禁止或删除 内容自动屏蔽

2006-07-22 16:03:20
angelfishbb

等 级:新手上路
帖 子:6
专家分:0
注 册:2006-7-7
  得分:0 
是的,的确像你说的!
“//”后为解释输入程序。
----------------解决方案--------------------------------------------------------
  相关解决方案