找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 1946|回复: 6
收起左侧

自己写的单片机程序一直显示错误,请问大神怎么修改?

[复制链接]
ID:570770 发表于 2019-6-26 18:44 | 显示全部楼层 |阅读模式
如题
2019-06-26_18.41.53.jpg
回复

使用道具 举报

ID:94031 发表于 2019-6-27 13:35 | 显示全部楼层
要给源程序
回复

使用道具 举报

ID:149451 发表于 2019-6-27 20:41 | 显示全部楼层
定义这两句后,再看看
#define uchar unsigned char   
#define uint unsigned int
回复

使用道具 举报

ID:307020 发表于 2019-6-27 23:34 | 显示全部楼层
用“uint”简化unsigned int之前定义了
“#define uint unsigned int”没?若没,用“uint a”自然就是syntax error了哈
回复

使用道具 举报

ID:307020 发表于 2019-6-27 23:35 | 显示全部楼层
接着的所有int.....自然也就问题了哈
回复

使用道具 举报

ID:155507 发表于 2019-6-28 00:58 | 显示全部楼层
你少了这个
#define uint  unsigned int
回复

使用道具 举报

ID:207421 发表于 2019-6-28 09:54 | 显示全部楼层
uint a        改为   unsigned int a
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|51黑电子论坛 |51黑电子论坛6群 QQ 管理员QQ:125739409;技术交流QQ群281945664

Powered by 单片机教程网

快速回复 返回顶部 返回列表