File Structure

First, the file structure

1, the header file structure:

  (1) Copyright and copyright notice at the beginning of

  (2) pre-fast  

  (3) functions and class structure declarations

2, to prevent the header file is reused: Use ifndef / define / endif structure produces fast pretreatment

3, reference standard library file: #include <filename .h>

   Non-standard reference library: #include <filename .h>

4, only the header file declaration is not defined!

5, the role of the header file:

  (1) to call the library function through header files

  (2) the type of header files can enhance the security check

Second, the definition file format

1, copyright and the copyright notice at the beginning of

2, some of the header file reference

3, program implementation (including data and code)

Third, the directory structure

  The header files and definition files are stored in different directories for maintenance.

  Private header files can drink definition file stored in the same directory.

Guess you like

Origin www.cnblogs.com/lyf98/p/11702823.html