, ++ - , ; )
, , , , , .
/ProjectName
/src
/libs <- Libraries go here
/Models <- Assuming you want to make a library out of your models
User.h
User.cpp
... <- Putting header and implementations together is not a problem,
they should be edited in parallel oftentimes
/Utilities <- Should your library grow, you can make it more modular
by creating subdirectories
(that could contain subdirectories, etc.)
DBConnection.h
DBConnection.cpp
/apps <- define your applications here.
They probably rely on classes and functions defined in one or several of your libaries define above.
/ApplicationA
Core.h
Core.cpp
Bootstrap.h
Bootstrap.cpp
/resources
/doc
/vs <- Visual studio project files
/xcode <- Xcode project files
- (.h, .hpp ) , (.cpp). , ( ).
.interface, , IDE ( ), . - ( ), : .
++ . /. DBConnection.h DBConnection, ( ) DBConnection.cpp.
Personnaly, , - , . , , .
, , . , , .
, .
IDE .
CMake, . CMakeLists.txt ( ProjectName/), add_subdirectory(src), , CMakeLists.txt ProjectName/src/ ..