Home > Common Problem > body text

What does include mean?

藏色散人
Release: 2020-04-15 11:22:49
Original
43324 people have browsed it

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template