littleguru wrote:
Ion Todirel wrote: But if you have a small class that is used only by another class put them together in the same file!
littleguru wrote: Put each class in one file.
I never do that. If the class is only used internally by the other class, i put it inside the class and make it private. Otherwise I put everything in an own file. What does it cost? Nothing. What's the benefits: You have one paradign, you follow - and that always - without exceptions.
I do the same thing. I even place structures, enumerations and other items within a seperate file. I also name the files according to the name of the class, enumeration, structure, etc. It really helps later when you need to manage the code or extend the features of code.