I write a program by DevC++ compiler and save it by .cpp format, and want to paste the code in my editor, Do I have to paste all the code each time? Is there a way to include the file instead of copying and pasting the code over and over? I suppose there should be a way because for a program of about 100 lines the including the file is more convenient.
Tell me more
×
TeX - LaTeX Stack Exchange is a question and answer site for
users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.
|
Normally this is done using the |
|||
|

lstinputlisting. Just do a quick search here on the site: tex.stackexchange.com/search?q=lstinputlisting – dıʞsdoʇ Jan 31 '12 at 10:50