This is the README for cpp2latex:

Cpp2LaTeX is a converter to print cpp-code over LaTeX.

I needed it primarily for my documentation of the BWInf-project.

After compiling and installing, usage is very simple:

cpp2latex <file_to_be_converted>

The result comes to stdout so you can redirect it into a file or directly to LaTeX if you created a full LaTeX-file.

Example:

> cpp2latex -f main.cpp |latex

This creates you an texput.dvi with the sourcecode of main.cpp.

See cpp2latex --help for details.
