求助
请各位老师帮我找以下错误.#include<stdio.h>
move(int array[20],int n,int m)
{
int *p,array_end;
array_end=*(array+n-1);
for(p=array+n-1;p>array;p--)
*p=*(p-1);
*array=array_end;
m--;
if(m>0)move(array,n,m);
}
void main()
{
int data[20],n,m,i;
printf("input the value of n:\n");
scanf("%d",&n);
printf("input the value of m:\n");
scanf("%d",&m);
printf("input the n numbers:\n");
for(i=0;i<n;i++)
scanf("%d",&data[i]);
move(data,n,m);
printf("the order after move:\n");
for(i=0;i<n;i++)
printf("%d\t",&data[i]);
}
----------------解决方案--------------------------------------------------------
这个程序是干什么用的啊?
----------------解决方案--------------------------------------------------------
回复 3# flyue 的帖子
这个程序的用处就是找错.... - - ----------------解决方案--------------------------------------------------------
乐在其中就行了
----------------解决方案--------------------------------------------------------
[bo][un]ACcreator[/un] 在 2008-6-22 18:03 的发言:[/bo]
话说我写了一上午程序只赚了15元,是不是少点了(300行)
话说我写了一上午程序只赚了15元,是不是少点了(300行)
偶昨天半个小时赚了25元
[color=white]
----------------解决方案--------------------------------------------------------
用了不到100行(实际84行)代码搞定
[color=white]
----------------解决方案--------------------------------------------------------
[bo][un]爱喝牛奶的猫咪[/un] 在 2008-6-22 18:05 的发言:[/bo]
偶昨天半个小时赚了25元
偶昨天半个小时赚了25元
把你追到手就好了
----------------解决方案--------------------------------------------------------
你们是怎么赚钱地?在工作了吗?
----------------解决方案--------------------------------------------------------
楼上你交易用的是Q币还是网银??
[color=white]
----------------解决方案--------------------------------------------------------
用什么付款?支付宝?
----------------解决方案--------------------------------------------------------