cout.precision

Hint

In C++ language, cout.precision is used to set the effective numbers of output.
You may use it in the program. E.g. cout.precision(15).

In C language, format "%.2lf" may be used

在JOJ 1001的hint中看到的,这样就可以提高cout的精度


posted @ 2012-11-13 21:47  MFT  阅读(292)  评论(0编辑  收藏  举报