积极答复者
error C2061 和error C2059

问题
-
我是新手,在用visual studio 2008练习的时候遇到了error C2061 和error C2059这两个编号的错误,请问怎么纠正呢?代码如下:
#include<stdio.h>
Polylist polycreate()
{
Polynode *head,*rear,*s;
int e,c;
head=(Polynode *)malloc(sizeof(Polylist));
rear=head;
scanf("%d,%d",&c,&e);
while(c!=0)
{
s=(Polydnode *)malloc(sizeof(Polynode));
s->coef=c;
s->exp=e;
rear->next=s;
rear=s;
scanf("%d,%d",&c,&e);
}
rear->next=NULL;
return(head);
}再有就是怎么使用“插入代码块”这个功能,我粘贴完代码,怎么没有提交的地方?
- 已移动 Sheng Jiang 蒋晟Moderator 2010年3月23日 22:43 Visual C++ (发件人:Visual Studio 相关讨论)
答案
-
找不到Polylist的定义,把包含Polylist定义的文件include进来
麻烦把正确答案设为解答。- 已建议为答案 Nancy Shao 2010年3月25日 1:49
- 已标记为答案 Nancy Shao 2010年3月30日 8:02
全部回复
-
-
找不到Polylist的定义,把包含Polylist定义的文件include进来
麻烦把正确答案设为解答。- 已建议为答案 Nancy Shao 2010年3月25日 1:49
- 已标记为答案 Nancy Shao 2010年3月30日 8:02
-
你好!
这个错误是找不到Polylist和Polynode的定义引起的。估计是你忘记把这个结构体的定义包含进来或者是忘记在程序中定义。
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.