Closed. This question does not meet Stack Overflow guidelines。它当前不接受答案。












想要改善这个问题吗?更新问题,以便将其作为on-topic用于堆栈溢出。

1年前关闭。



Improve this question




基于C编程语言的App/Project的一般结构是什么。
库,
包括
头文件。
等等等

什么是类结构。 (以OOps为单位)需要具有可扩展性和其他功能。
像main.cpp这样的东西
主文件

是否有任何良好的链接或图像或pdf?

最佳答案

大多数项目遵循单个层次结构,如下所示:

project
\_ conf\   --> configuration files (Unix/Linux projects might prefer an 'etc' folder)
\_ src\    --> main source (for C++ projects, headers and sources go along, but if
              your project is a library then separating include files for others
              is a better practice)
\_ src\module1\ --> for each sub module (for multiple files having related contents,
                   it is better to separate them to their own subfolders)
\_ doc\    --> documentation
\_ include\ --> (for library projects, the distributable include files)
\_ os\     --> OS (platform dependent) files (uch as makefiles, package building
              scripts..)
\_ res\    --> resources required for compilation but not source files (icons, etc.)
\_ MAKEFILE --> makefile script for building the project
\_ README   --> introductory document (might refer to doc\README)
\_ INSTALL  --> Installation document (might refer to doc\INSTALL)

关于c++ - 基于C的App/Project的文件和文件夹结构,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/2407668/

10-12 00:29
查看更多