请高手回答 谢谢
typedef char ElemType;
struct LNode
{
char data1;
ElemType data2;
struct LNode *next;
}
setnull(struct LNode **p)
{
*p=NULL;
}
.....
为什么在vc下编译.cpp不能通过 而把文件名改为.c 就可以呢 谢谢
出错信息 ch22++.cpp(19) : error C4716: 'setnull' : must return a value
struct LNode
{
char data1;
ElemType data2;
struct LNode *next;
}
setnull(struct LNode **p)
{
*p=NULL;
}
.....
为什么在vc下编译.cpp不能通过 而把文件名改为.c 就可以呢 谢谢
出错信息 ch22++.cpp(19) : error C4716: 'setnull' : must return a value
...全文


新手乐园
