C的一个简单的问题

[复制链接]
2884|17
 楼主| xlinxer 发表于 2011-10-19 15:13 | 显示全部楼层 |阅读模式
print, AN, IO, sd, ST
在sdk的C程序中,我想用串口打印data的值  print("%u",data);
结果报错                too many arguments to function ‘print’

但print("suibianshenm")就可以打印
AutoESL 发表于 2011-10-19 15:25 | 显示全部楼层
这个不懂啊, 帮顶起来
AutoESL 发表于 2011-10-19 15:26 | 显示全部楼层
print function 用错了,参数不对啊
GoldSunMonkey 发表于 2011-10-19 19:37 | 显示全部楼层
:handshake是呀
AutoESL 发表于 2011-10-19 20:04 | 显示全部楼层
建议你去百度一下print这个函数
GoldSunMonkey 发表于 2011-10-19 20:56 | 显示全部楼层
:handshake是呀
AutoESL 发表于 2011-10-19 22:03 | 显示全部楼层
:handshake
GoldSunMonkey 发表于 2011-10-19 22:04 | 显示全部楼层
内事问百度
hjjnet 发表于 2011-10-19 22:10 | 显示全部楼层
google啊,顶google
GoldSunMonkey 发表于 2011-10-19 22:18 | 显示全部楼层
;P哈哈,那谷歌了。哈哈
AutoESL 发表于 2011-10-19 22:25 | 显示全部楼层
google啊,顶google
hjjnet 发表于 2011-10-19 22:10
:handshake
AutoESL 发表于 2011-10-19 22:25 | 显示全部楼层
娱乐八卦问百度
科研学问还得找google
 楼主| xlinxer 发表于 2011-10-20 10:09 | 显示全部楼层
自己解决了  要用xil_print(“%d”,data)打印变量的值    用print直接打印“hello world”
AutoESL 发表于 2011-10-20 10:11 | 显示全部楼层
AutoESL 发表于 2011-10-20 10:12 | 显示全部楼层
大牛就是这样炼成的
xuan4801 发表于 2011-10-20 11:36 | 显示全部楼层
11# AutoESL +1
GoldSunMonkey 发表于 2011-10-20 12:22 | 显示全部楼层
11# AutoESL +1
xuan4801 发表于 2011-10-20 11:36

太坑爹了,这也能加分?
午后苦丁茶 发表于 2011-10-20 15:58 | 显示全部楼层
您需要登录后才可以回帖 登录 | 注册

本版积分规则

个人签名:xilinxer QQ 569207459

0

主题

26

帖子

1

粉丝
快速回复 在线客服 返回列表 返回顶部