为了账号安全,请及时绑定邮箱和手机立即绑定

源程序如下内容,请大佬指点一下

源程序如下内容,请大佬指点一下

C++
慕盖茨4494581 2023-03-16 18:14:23
#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贡献1111条经验 获得超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 个无法解析的外部命令

查看完整回答
反对 回复 2023-03-18
  • 1 回答
  • 0 关注
  • 57 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信