2010年10月6日水曜日

std::abs std::fabs (C++)

#include <cstdlib>
のabsはint型用。
#include <cmath>
のabsはdoubleとかfloatとかオーバーロードしてるらしい!


0 件のコメント:

コメントを投稿