照着书抄的.怎么还有错
c4droid吧
全部回复
仅看楼主
level 3
HK哦JPG
楼主
#include <stdio.h>
void main( )
{
int i,j,k,m;
i=2000;j=2000;
m=i+j;
k=i*j;
printf("%d,%d",m,k);
}
2016年04月07日 08点04分
1
level 14
不知者来此
请
看看你的
书的发行日期
2016年04月07日 08点04分
2
HK哦JPG
2009年的,2016年重印的
2016年04月07日 09点04分
不知者来此
回复 HK哦JPG :不算太旧,好吧,当你写代码时,需要确定好你按哪个标准来写,目前你的写法比较古老,相关知识你还是百度一下或者谷歌一下吧
2016年04月07日 10点04分
level 5
Rainrunner
main应返回int
2016年04月07日 08点04分
3
level 5
Rainrunner
main应返回int
2016年04月07日 08点04分
4
level 6
雪风可爱捏
int main()
或者直接main()都行。
2016年04月07日 09点04分
7
HK哦JPG
真是郁闷#正在学的的书原来落后这么多
2016年04月07日 09点04分
HK哦JPG
真是郁闷#正在学的的书原来落后这么多
2016年04月07日 09点04分
雪风可爱捏
呵呵
2016年04月07日 09点04分
HK哦JPG
面对这种情况该怎么办
2016年04月07日 10点04分
level 6
雪风可爱捏
然而真的是你书的问题吧!同样是2006年
2016年04月07日 10点04分
8
level 7
我的知道——号
亲,确实是没错的,你要看看你选的编译器支持不,有的编译器会自己把void main()处理成int main(),具体的处理方式忘记了,如果有电脑你可以断点调试看得见,C4droid才刚上手,不知道怎么调试,你换第一个或者第二个选项就没问题了,有图有真相!
2016年04月07日 10点04分
10
乖奕虎
void拼错了
2016年04月09日 06点04分
HK哦JPG
厉害
2016年04月09日 06点04分
level 13
onlyangli2011
建议初学者用 c primer plus
2016年04月08日 11点04分
11
level 11
d2370681859
一般最好别用void main(),现在的标准要用int main才能通过编译,版本不同了
2016年04月09日 04点04分
12
level 9
西门瘦肉胡
int main()
{
return 0;
}
2016年04月12日 23点04分
14
level 8
nonxie
最后return 0
2016年04月13日 02点04分
15
1
2
尾页