Create calc_length.cpp

source code