View Single Post
Old May 25th, 2006, 9:07 PM   #2
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
If you have a project of any size at all, you'll have many source files. This isn't a question you would even think about asking in a real-world situation, particularly when larger projects are written by teams. Ever hear of CVS?

Even on a small, personal project you should have a source file for each functionally different area, break one up to prevent it from being too long (quicker compilation), or perhaps, as some like, to have one file per function.

Can you imagine recompiling thousands of lines of code when you change one line? Nahhhhhhhhh.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote