您的位置:首页 > 其它

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

2012-04-01 21:13 302 查看
融合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 );



内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: