当前位置:网站首页>The order of include header files and the difference between double quotation marks "and angle brackets < >
The order of include header files and the difference between double quotation marks "and angle brackets < >
2022-07-06 09:15:00 【it_ xiangqiang】
Double quotes ”” And angle brackets <> The difference between
- Include The order of header files
- The difference between double quotation marks and angle brackets :
- Current header file directory
Include The order of header files
about include For the header file , If it's in the file a.h Declare a in the file b.h
Variables defined in , Without reference b.h. Then you have to be in a.c Reference in file b.h file , And first quote b.h, Post reference
a.h, Otherwise, the report variable type does not declare an error .
The difference between double quotation marks and angle brackets :
The path to find the header file in the compiler preprocessing phase is different .
For header files contained in double quotation marks , The order to find the header file path is :
Current header file directory
Header file path set by compiler ( The compiler can use -I Explicitly specify the search path )
System variables CPLUS_INCLUDE_PATH/C_INCLUDE_PATH Specified header file path
For header files included with angle brackets , The order of searching the header file is :
Header file path set by compiler ( The compiler can use -I Explicitly specify the search path )
System variables CPLUS_INCLUDE_PATH/C_INCLUDE_PATH Specified header file path
边栏推荐
- Leetcode: Sword finger offer 48 The longest substring without repeated characters
- Notes 01
- [sword finger offer] serialized binary tree
- LeetCode:34. Find the first and last positions of elements in a sorted array
- Redis之持久化实操(Linux版)
- Redis之核心配置
- 如何正确截取字符串(例:应用报错信息截取入库操作)
- [shell script] use menu commands to build scripts for creating folders in the cluster
- Mongodb installation and basic operation
- CUDA implementation of self defined convolution attention operator
猜你喜欢
Advanced Computer Network Review(3)——BBR
Selenium+Pytest自动化测试框架实战(下)
The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower
LeetCode41——First Missing Positive——hashing in place & swap
Parameterization of postman
The carousel component of ant design calls prev and next methods in TS (typescript) environment
Redis之持久化实操(Linux版)
In depth analysis and encapsulation call of requests
Compétences en mémoire des graphiques UML
Mise en œuvre de la quantification post - formation du bminf
随机推荐
数字人主播618手语带货,便捷2780万名听障人士
Kratos战神微服务框架(一)
Booking of tourism products in Gansu quadrupled: "green horse" became popular, and one room of B & B around Gansu museum was hard to find
[OC-Foundation框架]---【集合数组】
I-BERT
Kratos战神微服务框架(三)
[sword finger offer] serialized binary tree
[oc]- < getting started with UI> -- learning common controls
Heap (priority queue) topic
LeetCode:236. The nearest common ancestor of binary tree
BN折叠及其量化
Advanced Computer Network Review(4)——Congestion Control of MPTCP
Le modèle sentinelle de redis
Advanced Computer Network Review(3)——BBR
In depth analysis and encapsulation call of requests
Redis之核心配置
Redis之主从复制
Improved deep embedded clustering with local structure preservation (Idec)
Persistence practice of redis (Linux version)
Problems encountered in connecting the database of the project and their solutions