" is the content to be processed before program compilation, which is called compilation preprocessing command; "stdio.h" is the header file, standard input and output function library; the header file has the extension ".h" The file contains C function declarations and macro definitions, which are referenced and shared in multiple source files."/> " is the content to be processed before program compilation, which is called compilation preprocessing command; "stdio.h" is the header file, standard input and output function library; the header file has the extension ".h" The file contains C function declarations and macro definitions, which are referenced and shared in multiple source files.">

Home >Common Problem >What does include mean?

What does include mean?

藏色散人
藏色散人Original
2020-04-15 11:22:4943382browse

What does include<studio.h> mean?

includeWhat does it mean?

#include is content to be processed before program compilation, which is called compilation preprocessing command. There are many compilation preprocessing commands, they all start with "#" and do not end with a semicolon. stdio.h is the header file, standard input and output function library. A header file is a file with an extension of .h. It contains C function declarations and macro definitions and is referenced and shared by multiple source files.

Recommended tutorial: "c Language Tutorial"

There are two types of header files:

The header files written by the programmer and the compiler's own header files header file.

To use a header file in a program, you need to use the C preprocessing directive #include to reference it.

stdio.h

Header file, it is the header file that comes with the compiler.

Referring to the header file is equivalent to copying the contents of the header file, but we will not directly copy the contents of the header file in the source file, because it is easy to make mistakes, especially when the program is composed of multiple source files. when.

Extended information

The concept of preprocessing in programming languages:

Processing before compilation. There are three main aspects of preprocessing in C language: macro definition; file inclusion; and conditional compilation. Preprocessing commands begin with the symbol "#". In addition to function prototypes and macro definitions, the content of the header file can also have structure definitions and global variable definitions:

A #include command specifies a header file; file 1 includes file 2, and file 2 uses file 3. Then the include command #include of file 3 should be placed on the first line of the header of file 1;

includes can be nested;

is called the standard method, and the system goes to the beginning When searching for a file in the file directory, "file name" is first searched in the current directory, and then in the header file directory;

Static global variables in the included file do not need to be declared in the included file.

The above is the detailed content of What does include mean?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn