<分区>
基于 C 编程语言的应用程序/项目的一般结构是什么。 图书馆, 包括, 头文件。 等等等等
类结构是什么。 (在 OOps 中)需要可扩展和其他功能。 像 main.cpp 这样的东西 主.h
谁有好的链接或图片或 pdf?
<分区>
基于 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/