摘要:
除了最简单的三变量法外还有一种不用参数的交换法#include int main(){ int a,b; scanf("%d%d",&a,&b); a=a+b; b=a-b; a=a-b; printf("%d %d\n",a,b); return 0;}这种方法范围窄,只有... 阅读全文
posted @ 2015-04-01 10:40
锄,禾日当午
阅读(172)
评论(0)
推荐(0)
摘要:
错误:#include #include int main(){ int a; int b,c,d; scanf("%d",&a); b=a-100*a/100-10*(a/10-10*a/100); c=a/10-10*a/100; d=a/100; printf("%d%d%d\n",b... 阅读全文
posted @ 2015-04-01 10:28
锄,禾日当午
阅读(239)
评论(0)
推荐(0)
摘要:
#include #include int main(){ printf("%f",8.0/5.0); system("pause"); return 0;}no.18.0/5.0改成8/5结果:0.000000no.2%f改成%d结果-1717986918 阅读全文
posted @ 2015-04-01 09:39
锄,禾日当午
阅读(107)
评论(0)
推荐(0)

浙公网安备 33010602011771号