Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Point * make_point(double x, double y)
- double x_of(Point *p)
- double y_of(Point *p)
- void print_point(Point *p)
- Point * mid_point(Point *x, Point *y) {
- return make_point(((x_of(x)+x_of(x))/2,(y_of(y)+y_of(y))/2);
- print_point(make_point);
- }
Add Comment
Please, Sign In to add comment