c 语言格式输出 浮点数 不要用 整形输出 --教训

融合insert 版本,其实前面两个都没有出错的,在第三个版本,爆出输出

串的奇怪问题。

当前总结:

66

问什么 就在这里报错,两次没有爆出错误

看了截图:其实 控制输出格式符号的错误i, 会出现连带错误

printf("\n %lf %d : time cutoffvalue\n",(EndTime- BegTime)*1000.0 /(double)CLOCKS_PER_SEC ,cutoff);

//for test..后面可以移除。

printf("\n a %lf %d : time cutoffvalue\n",(EndTime- BegTime)*1000.0 /CLOCKS_PER_SEC ,cutoff);

printf("\n b %ld %d : time cutoffvalue\n",(EndTime- BegTime)*1000.0 /CLOCKS_PER_SEC ,cutoff);

printf("\n c %ld : time \n",(EndTime- BegTime)*1000.0 /CLOCKS_PER_SEC );

printf("\n d %lf : time \n",(EndTime- BegTime)*1000.0 /CLOCKS_PER_SEC );

clip_image001

转载于:https://www.cnblogs.com/titer1/archive/2012/04/01/2429357.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值