721
edits
Line 14: | Line 14: | ||
return distance; | return distance; | ||
}</source> | }</source> | ||
Note that, for the sqrt() function to be known to the compiler, you need to include the math library with <source lang="c++" line start="1" highlight="4">#include <math.h></source> | |||
==File Structuring== | ==File Structuring== |