   C\C++ code orginization
  No, this isn't about arguing about which style is better, I want to decide for myself the best way to orginize code for a game or any program. So just make creative suggestionsCurrently I put everything into separate classes. There is only one instance of most classes at any one time. The 'main' classes are crated by WinMain() and are stored as global variables which the other classes access (like graphics). The Direct3D startup/manager is very well suited to plain C.I like to use lots of arrays of structures to store all the data. Loops go through and update everything. I am sure it would be better if they had their own class the C++ way.Clearly I am not using any features of C++ other then a convinient way to organize code. How do C only and C++ games do it? Can I use both at once?   
  C++ STL containers can go quite a long way taking care of your data structure needs. Function objects and standard C++ algorithms give you plenty of ways to manipulate those structures efficiently. Custom allocators and smart pointers let you transparently handle with how memory is allocated and when objects are destroyed. Polymorphic classes simplify update loops and other runtime-dispatch code. (Do away with type field switches!)Boost is great.   ;  Very basic, very important:    Declaration goes in the .h file.    Implementation goes in the .cpp file.Somewhere around here, there is a more thorough description of good organization. ... Here it is: Organizing Code Files in C and C++;Quote:Original post by FrunyC++ STL containers can go quite a long way taking care of your data structure needs. Function objects and standard C++ algorithms give you plenty of ways to manipulate those structures efficiently. Custom allocators and smart pointers let you transparently handle with how memory is allocated and when objects are destroyed. Polymorphic classes simplify update loops and other runtime-dispatch code. (Do away with type field switches!)Boost is great.I'll second that entire post.   