c语言写的 归并排序,,求找错??

[复制链接]
查看11 | 回复2 | 2021-1-27 07:12:08 | 显示全部楼层 |阅读模式
voidhebing(inta[],intc[],intleft,intright)
{
inti,j,k=0,mid;
if(left -->
回复

使用道具 举报

千问 | 2021-1-27 07:12:08 | 显示全部楼层
#include
#definetrue1
#definefalse0

//将有二个有序数列a[first...mid]和a[mid...last]合并。
voidmergearray(inta[],intfirst,intmid,intlast,inttemp[])//first,mid,last均为下标
{
inti=first,j=mid+1;
intm=mid,n=last;
intk=0;
while(i
这是我博客里的代码,供你参考
回复

使用道具 举报

千问 | 2021-1-27 07:12:08 | 显示全部楼层
发了两遍?
http://bbs.csdn.net/topics/390335714?page=1#post-393370883
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行