As a C++ file gets increasingly long, it becomes harder and harder to edit. Is there anyway I can take sections of the program and put them into another file which the pre-processor will re-insert before compiling?

I tried doing this with headers, but it wants me to declare lots of variables and stuff; isn't there some way it can just put the text back in as if it were all one file?