Using the definition
struct Point {
double x, y;
};
write a function
double dist(const Point& a, const Point& b);
that returns the euclidean distance between two points @a@ and @b@.
You only need to submit the required classes; your main program will be ignored.
Strictly obey the type definitions of the statement.
Author: Unknown
Translator: Carlos Molina
Generation: 2026-01-25T11:20:55.836Z
© Jutge.org, 2006–2026.
https://jutge.org