计算两点间的距离

这道题本身不难的,主要用于练习C++的cout格式化输出 ios::fixed  将符点数按照普通定点格式处理(非科学计数法) 与<iomanip>的setprecision配合使用,可以表示指定小数点后面的保留位数 #include <iostream> #include <iomanip> #include<string.h> #include<math.h> using namespace
相关文章
相关标签/搜索