These won't fix your issue, but they will clean up your code a bit.
In main.cpp:
-Change lines 8-10 to:
float mypointx, mypointy, Answer;
-After line 22 add:
system("pause");
In XYPoint.h:
-Change lines 13-17 to:
float mypointx, mypointy, pointpx, pointpy, mydistance;
In XYPoint.cpp:
-Remove lines 6-10 (Variables already zero. For one run, you won't need to set them. Keep though if looping program).
-------------------------------
Not sure why you are getting the answer in scientific notation.
When you are testing your program, make the (actual) distance between points "0", as to say that both sets of coordinates are the same. If it does not turn out zero, something is wrong.
When that is working, you will need to test the logic of your program with a 3-4-5 triangle. From your fixed point (eg [0, 0]), you will go out 3 on the x, and up 4 on the y, giving you [3, 4]. The hypotenuse (the distance) of which will be "5".
http://www.tpub.com/math1/20f.htm
Hope this helps :) (If so, then please upvote!)