#include void fun (ints[ ]){static int j =0;do s[j]+=s[j+i];while(+#include void fun (ints[ ]){static int j =0;do s[j]+=s[j+i];while(++j

来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/23 06:59:16
#includevoidfun(ints[]){staticintj=0;dos[j]+=s[j+i];while(+#includevoidfun(ints[]){staticintj=0;dos[

#include void fun (ints[ ]){static int j =0;do s[j]+=s[j+i];while(+#include void fun (ints[ ]){static int j =0;do s[j]+=s[j+i];while(++j
#include void fun (ints[ ]){static int j =0;do s[j]+=s[j+i];while(+
#include
void fun (ints[ ])
{
static int j =0;
do
s[j]+=s[j+i];
while(++j

#include void fun (ints[ ]){static int j =0;do s[j]+=s[j+i];while(+#include void fun (ints[ ]){static int j =0;do s[j]+=s[j+i];while(++j
首先我把你的程序整理了一遍:通过你说的答案我帮你把程序写错的地方改正了,
s[j]+=s[j+i];
应该是
s[j]+=s[j+1];
int k,a[10]={1,2,3,4,5};p
去掉最后的p
main( )
最好改为
void main()
否则很多编译器不认那种写法,正确程序如下:
#include
void fun (int s[])
{
static int j =0;
do
s[j]+=s[j+1];
while(++j