0 of 1 Questions completed
Questions:
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading…
You must sign in or sign up to start the quiz.
You must first complete the following:
0 of 1 Questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 point(s), (0)
Earned Point(s): 0 of 0, (0)
0 Essay(s) Pending (Possible Point(s): 0)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
#include <iostream> #include <cmath> using namespace std; struct Point { float x, y; }; int main(){ Point p1,p2; p1.y=10; p1.x = 20; p2.x=23; p2.y=14; cout<<sqrt(pow(p2.x-p1.x,2)+pow(p2.y-p1.y,2))<<endl; return 0; } |
阅读上面程序,输出结果为?