level 7
void load()
{
struct experiment *p1=NULL,*p2=NULL;if((fp=fopen("experimentaldate","r"))==NULL)
{
printf("文件打开时出错\n");
exit(0);
}
head=p1;
do
{
if((p1=malloc(LEN))==NULL)
{
printf("找不到可用存储空间\n");
return;
}
fread(p1,LEN,1,fp);
fseek(fp,-1,1);
p2->next=p1;
p2=p1
} while(!feof(fp));
fclose(fp);
}
2015年12月24日 02点12分
5
level 1
#include <stdio.h>
int main(void)
{
int product=1,i,n;
scanf("%d",&n);
for(i=1,i<=n,i++)
{
product=product*i;
}
printf("%6d\n",product);
return 0;
}大神帮我看看哪里错了😣
2016年10月19日 15点10分
10
编译器给的错误信息是啥
2016年10月20日 00点10分
for里面的逗号改成分号
2016年10月20日 05点10分
谢了,我刚学这个
2016年10月29日 11点10分