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

posted @ 2012-04-01 21:13  os66  阅读(1257)  评论(0编辑  收藏  举报