F:\ACM\qt\xunhuanSL\main.c:34:error:too few arguments to fun
来源:学生作业帮 编辑:作业帮 分类:综合作业 时间:2024/07/15 01:19:44
F:\ACM\qt\xunhuanSL\main.c:34:error:too few arguments to function 'creat' p=creat(); ^
#include
typedef struct lnode{
int data;
struct lnode *next;
}linklist;
linklist creat(int n){
linklist *head,*p1,*p2;
int i;
int a;
head=NULL;
printf("输入数据");
for(i=0;idata=a;
if(p1=NULL)
head=p1;
else
p2=p1->next;
p1=p2;
}
p1->next=head;
return *head;
}
int main(void)
{
int n;
printf("输入节点数\n");
scanf("%d",&n);
linklist *head,*p;
p=creat();
head=p;
while(p!=head){
printf("%d",p->data);
p=p->next;
}
printf("\n");
return 0;
}
#include
typedef struct lnode{
int data;
struct lnode *next;
}linklist;
linklist creat(int n){
linklist *head,*p1,*p2;
int i;
int a;
head=NULL;
printf("输入数据");
for(i=0;idata=a;
if(p1=NULL)
head=p1;
else
p2=p1->next;
p1=p2;
}
p1->next=head;
return *head;
}
int main(void)
{
int n;
printf("输入节点数\n");
scanf("%d",&n);
linklist *head,*p;
p=creat();
head=p;
while(p!=head){
printf("%d",p->data);
p=p->next;
}
printf("\n");
return 0;
}
34行 p=creat(); 改成p=creat(n);
ACM的问题Problem C: WERTYUA common typing error is to place the
北大ACM,Presentation Error,
acm presentation error
Bridge Street is a good place to .A.be fun B.is fun C.have f
fun(int x) {if (x/2>0) fun(x/2); printf("%d",x); } main() {f
#include int fun(inta,intb,intc) {c=a*b} main() {intc; fun(2
42CrMo4+QT+C是什么意思?
matlab出现Too many input arguments错误
Error using input Not enough input arguments matlab
matlab 提示Error using vertcat CAT arguments dimensions are no
Matlab 求助 Error using vertcat CAT arguments dimensions are n
英语翻译Your arguments are too easy to be cut down.这个句子我翻译时,翻译成了