加入收藏 | 设为首页 | 会员中心 | 我要投稿 核心网 (https://www.hxwgxz.com/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 电商 > 正文

【数据结构】 单向链表

发布时间:2021-04-01 23:22:48 所属栏目:电商 来源:网络整理
导读:【1】错误:H-next =NULL 或其他“让指针指向空”的语句运行报错: “ ‘NULL‘ : undeclared identifier ”? 、 “ ‘=‘ : cannot convert from ‘int‘ to ‘struct node *‘? ” 原因:未引入头文件 #include “stdio.h”?,把NULL定义为一个空地址是在 s

【1】错误:H->next =NULL 或其他“让指针指向空”的语句运行报错:“ ‘NULL‘ : undeclared identifier”? 、 “ ‘=‘ : cannot convert from ‘int‘ to ‘struct node *‘? ”

原因:未引入头文件 #include “stdio.h”?,把NULL定义为一个空地址是在 stdio头文件中完成的。

?

【2】

scanf("%d",c)

printf("位置为:")

printf语句的内容死活无法显示

原因:将scanf(“%d”,c)改为 scanf(“%d”,&c)

(编辑:核心网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    热点阅读