各位大侠,谁帮我看一下这个程序哦?

2025-02-24 04:44:47
推荐回答(4个)
回答1:

不知道你的squeece是要实现什么功能?
虽然说程序是漏洞百出
但比起那些上来就要现成的强多了
毕竟是自己肯下功夫学一些东西
鼓励一下
给你改了改
能运行
但不一定有你想要的结果
因为我不知道你想得到什么结果
有不懂的地方可以和我联系

// zd_56.cpp : Defines the entry point for the console application.
//

#include
#include

int N;

squeece(int arr[])
{
int i,t;
for(i=0;i {
t=arr[i];arr[i]=arr[N-i-1];arr[N-i-1]=t;
}
}
main()
{
int i,S;
int a[30];
printf("please input the arry content S", &S);
scanf("%d",&S);
N=S;

for(i=0;i {
printf("please input the %d date \n",i);
scanf("%d",&a[i]);
}
squeece(a);
for(i=0;i printf("the result is %d\n",a[i]);
getch();
}

回答2:

缺少声明

回答3:

建议你将程序的格式规范了再发上来,这样子看程序很费力,而且如果你现在不养成一个好的习惯的话会影响一辈子的.

回答4:

声名重复