c – 基于C的应用程序/项目的文件和文件夹结构
作者:互联网
基于C编程语言的App / Project的一般结构是什么?
库,
包括:
头文件.
等等
什么是班级结构. (在OOps中)需要具有可扩展性和其他功能.
像main.cpp这样的东西
main.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-3,c,oop,project-management 来源: https://codeday.me/bug/20191004/1853266.html