Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include"punct.h"
- #include"iostream"
- using namespace std;
- int main()
- {
- Punct p1, p2(1, 2);
- p1.SetX(4);
- p1.SetY(5);
- SetX(p2, 7);
- cout << p1.GetX() << " " << p1.GetY() << endl;
- cout << p2.GetX() << " " << p2.GetY() << endl;
- cout << p1.dist0() << endl;
- cout << p2.dist0() << endl;
- cout << dist(p1, p2) << endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement