#include<stdio.h>main(){char str[20]="how are you?";puts(str);}

[复制链接]
查看11 | 回复4 | 2009-7-30 21:48:30 | 显示全部楼层 |阅读模式
标准写法应该是 #includeint main(){ char str[20]="how are you?"; puts(str); return 0;}输出字符串 “how are you?”...
回复

使用道具 举报

千问 | 2009-7-30 21:48:30 | 显示全部楼层
puts(str);需要文件头#include 运行的就是how are you? puts(str);就是输出整个字符串...
回复

使用道具 举报

千问 | 2009-7-30 21:48:30 | 显示全部楼层
main() 的类型没有...
回复

使用道具 举报

千问 | 2009-7-30 21:48:30 | 显示全部楼层
是正确的...
回复

使用道具 举报

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

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行