#include <iostream.h>
struct NODE
{
int data;
NODE *next;
};
NODE *head = NULL;
int data[6] = {25,41,17,98,5,67};
void InsertList(NODE **head, int aData, int bData);
void DeleteList(NODE **head, int aData);
void OutputList(NODE *head);
void main()
{
for (int i=0; i<6; i++)
InsertList(&head, data[0], data[i]);
OutputList(head);
DeleteList(&head, 98);
DeleteList(&head, 41);
OutputList(head);
}
请各位大侠指教啊
1 回答

catspeake
TA贡献875条经验 获得超0个赞
就是该标识符没有定义。
main.obj : error LNK2019: 无法解析的外部符号 "void __cdecl DeleteList(struct NODE * *,int)" (?DeleteList@@YAXPAPAUNODE@@H@Z),该符号在函数 _main 中被引用
main.obj : error LNK2019: 无法解析的外部符号 "void __cdecl OutputList(struct NODE *)" (?OutputList@@YAXPAUNODE@@@Z),该符号在函数 _main 中被引用
main.obj : error LNK2019: 无法解析的外部符号 "void __cdecl InsertList(struct NODE * *,int,int)" (?InsertList@@YAXPAPAUNODE@@HH@Z),该符号在函数 _main 中被引用
E:\Documents\Visual Studio 2005\Projects\formula\Debug\formula.exe : fatal error LNK1120: 3 个无法解析的外部命令
- 1 回答
- 0 关注
- 5 浏览
添加回答
举报
0/150
提交
取消