cod*_*rex 8 c c++ oop project-management
基于C编程语言的App/Project的一般结构是什么?libs,包括头文件.等等
什么是班级结构.(在OOps中)需要具有可扩展性和其他功能.像main.cpp main.h这样的东西
有任何人有任何良好的链接或图像或PDF格式?
小智 9
大多数项目遵循以下单一层次结构:
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)
Run Code Online (Sandbox Code Playgroud)
我想没有共同的指导方针(至少,我听说过没有)。每个公司似乎都有自己的做法和建议。我想,你只能靠自己,做适合你当前需要的事情。
如果您还没有看过,这里有一个 Google C++ 风格指南的链接: https: //google.github.io/styleguide/cppguide.html(他们有很多想法,但我不接受其中一些,所以这是一个选择的问题)
这是其他一些随机指南:http://geosoft.no/development/cppstyle.html
我想你可能会看一下这些,但没有一般的经验法则。一切都取决于您的具体任务。