#include <math.h>
double hypot(double x, double y);
#include <stdio.h>
#include <math.h>
int main()
{
double dis;
dis = hypot(3,4);
printf ("the distance = %f\n", dis);
return 0;
}
./hypot
the distance = 5.000000
欢迎光临 曲径通幽论坛 (http://www.groad.net/bbs/) | Powered by Discuz! X3.2 |