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?
-
Depends on the standard used, but Best practices - it's separate.
header
for each class and file.cpp / .cc
whose name coincides withheader'ом
♪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.