Guest User

Untitled

a guest
Mar 16th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. Point * make_point(double x, double y)
  2. double x_of(Point *p)
  3. double y_of(Point *p)
  4. void print_point(Point *p)
  5.  
  6. Point * mid_point(Point *x, Point *y) {
  7.  
  8. return make_point(((x_of(x)+x_of(x))/2,(y_of(y)+y_of(y))/2);
  9.  
  10. print_point(make_point);
  11.  
  12. }
Add Comment
Please, Sign In to add comment