本人初学C语言 超级菜 帮我看看哪错了

[复制链接]
查看11 | 回复3 | 2011-9-6 12:23:18 | 显示全部楼层 |阅读模式
#includestdio.hintmain(){inta,b,sum;a=123;b=456;sum=ab;printf(\"sumis%d\\n,sum\");retuen0;}怎么编译就出错
回复

使用道具 举报

千问 | 2011-9-6 12:23:18 | 显示全部楼层
#includestdio.hintmain(void){inta,b,sum;a=123;b=456;sum=ab;printf(\"sumis%d\\n\",sum);return0;}你的程序printf语句出错,return也拼错了!
回复

使用道具 举报

千问 | 2011-9-6 12:23:18 | 显示全部楼层
printf(\"sumis%d\\n\",sum);
回复

使用道具 举报

千问 | 2011-9-6 12:23:18 | 显示全部楼层
我也是初学者,呵呵呵,今天刚借了本C语言的书,这个函数设置返回值好像没什么意义啊printf(\"sumis%d\\n,sum\");肯定这句有错
回复

使用道具 举报

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

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行