Hi! It looks like you compiled the ebook with LaTeX. If so, do you mind using lstinputlusting to include the source code as it also offers syntax highlighting:
\usepackage{listingsutf8}
\lstinputlisting[language=C++, numbers=left, linerange=44-71, firstnumber=44]{main.cpp}
Regards