+ 1
Which class to use?
Is it best to use internal classes in the same .cpp file as the main, or an external class in a separate .cpp and .h file? Better question; what are the disadvantage and advantages to each? Additionally, what is a struct, and when should they be used? I heard they're fairy similar. Many thanks!
3 Réponses
+ 4
better use separate files. it's helping when compiling big project ( multithread compilation, recompilation only of changed translation units, etc.) structure used when you combining c and c++ code. or writing small type that no need of inheritance and function virtualization.
0
Thank you! :)
- 3
gugg