   a thing about classes
  hi guys just wondering how the pros make their big games? do they have seperate .cpp files for every class they make? Will this make it easier for them to make bigger games?   
Quote:Original post by emforcehi guys just wondering how the pros make their big games? You're not alone!Quote:Original post by emforcedo they have seperate .cpp files for every class they make? Yes. Quote:Original post by emforceWill this make it easier for them to make bigger games?No.   ;  Well I've just started learning C++ and I already have classes with 2 files each (.cpp and .h). It's good practise and entirely normal for even small programmers. Here's a good article on file separation.http://cplusplus.com/forum/articles/10627/;Quote:Original post by RattenhirnQuote:Original post by emforceWill this make it easier for them to make bigger games?No.So you'd rather dump everything together into one massive file? ;)@emforce: Once files start counting thousands of lines I find them becoming too large to manage. Your mileage may vary, but more code is harder to manage, so organizing your code well is an important factor in creating larger projects. Using one .cpp and .h per class is only one aspect of that (a C and C++ specific aspect - many languages have no need for header files).   ;Quote:Original post by Captain PSo you'd rather dump everything together into one massive file? ;)Well, that's probably not very practical. :)But my point was, that organizing your classes into files in a particular way, will not make it much easier to make bigger games. The challenges are elsewhere.;Quote:Original post by RattenhirnBut my point was, that organizing your classes into files in a particular way, will not make it much easier to make bigger games. The challenges are elsewhere.True, true. :)   