put your cpp files in src,
and some documents in doc,
and simply:
$ make all
then you get your main.pdf.
you can classify your file by placing them in different directory,
nested directory is accepted.
for archlinux user, install texlive-latexextra
default font is Source Code Pro