Guest User

Untitled

a guest
May 20th, 2018
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.18 KB | None | 0 0
  1. int calculate_depth(int startx, int starty, int nodex, int nodey)
  2. {
  3.     static int d;
  4.    
  5.     d = sqrt(pow((nodex-startx),2)+pow((nodey-starty),2))
  6.    
  7.     return d;
  8.     }
Add Comment
Please, Sign In to add comment