C99以降またはC++11以降では、sqrt関数の他にhypot関数も利用できる。*1 #include // C++98 double dist = std::sqrt((x2 - x1) * (x2 - x1) + (y2 ...
確定! 回上一頁