题解 2773: 计算线段长度

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

2773: 计算线段长度

摘要:```cpp #include #include #include using namespace std; int main() { double xa, xb, ya, ……

2773: 计算线段长度

摘要:解题思路:注意事项:参考代码:#include<iostream> #include<iomanip> #include<cmath> using namespace std; int mai……

pow函数算平方根

摘要:解题思路:利用pow函数来求开方,与sqrt函数求开方同理注意事项:1/2是整型,等于零,应该用1.0/2参考代码:#include<iostream>using namespace std;#inc……

2773: 计算线段长度

摘要:```cpp #include #include #include using namespace std; int main() { double Xa,Ya,Xb,Yb; ……