Ask Your Question

Revision history [back]

you can use norm function :

        Point p1(10,2),p2(20,3);
        cout << norm(p1-p2);

you can use norm norm function :

        Point p1(10,2),p2(20,3);
        cout << norm(p1-p2);