Correct design of projects (programmes)
Are there any standards for designing programme projects? What's the right thing to distinguish modules? I'm doing one cheder, where all classes are interfaced; each class re-allocation is separate *.cpp; and the programme part is main.cpp. How is the standard?
Marcee last edited by
Depends on the standard used, but Best practices - it's separate.
headerfor each class and file
.cpp / .ccwhose name coincides with
Same thing. http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml This scheme has been approved.
In the case of small data structures, it is possible to combine some of these parts into one.
header-файлbut I do not personally welcome this, because it's much easier to search the file by the name of the class.