src/ folder structure in C++?

前端 未结 6 1083
离开以前
离开以前 2021-02-02 00:01

i\'m coming into C++ from Java/AS3-land, and i\'m used to the package-cum-folder structure for my classes. and i like it.

i understand the very basics of namespaces in

6条回答
  •  灰色年华
    2021-02-02 00:46

    The src/ is a common place there c/c++ programmers put their sources within the project root. For example:

    doc/    <- documentation
    libs/   <- additional libraries
    po/     <- gettext translations
    src/    <- sources
    

    it common to create subdirectories underneath src/ if you've got a lot of sources files but there are no limitations how to organize this substructure.

    Keep in mind that a directory structure in completely optional in c++. That is no connection between c++ namespaces and the directory structure.

提交回复
热议问题