c++ - 基于 C 的应用程序/项目的文件和文件夹结构

标签 c++ c oop project-management

<分区>

基于 C 编程语言的应用程序/项目的一般结构是什么。 图书馆, 包括, 头文件。 等等等等

类结构是什么。 (在 OOps 中)需要可扩展和其他功能。 像 main.cpp 这样的东西 主.h

谁有好的链接或图片或 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 的应用程序/项目的文件和文件夹结构,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2407668/

相关文章:

C++,在函数中采用const左值和右值引用

c# - 反方差的常见编程用途是什么?

c - C中的图灵机实现

python - 克服 Python 在实例方法方面的局限性

c++ - 运行时链接错误 : The procedure entry point glewInit@0 could not be located

c++ - 字符指针

c - 我怎样才能 LD_PRELOAD 我自己编译的库?

c - 查找本地子网上所有可用的计算机

java - C++ 等价于 java 的 instanceof

java - 为什么某些 API(如 JCE、JSSE 等)通过单例映射提供可配置属性?