当前位置:网站首页>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
边栏推荐
猜你喜欢

Heap (priority queue) topic

Redis之五大基础数据结构深入、应用场景

Advanced Computer Network Review(5)——COPE

Redis core configuration

LeetCode41——First Missing Positive——hashing in place & swap

A convolution substitution of attention mechanism

Advanced Computer Network Review(3)——BBR

After reading the programmer's story, I can't help covering my chest...

Redis之哨兵模式
![[text generation] recommended in the collection of papers - Stanford researchers introduce time control methods to make long text generation more smooth](/img/10/c0545cb34621ad4c6fdb5d26b495ee.jpg)
[text generation] recommended in the collection of papers - Stanford researchers introduce time control methods to make long text generation more smooth
随机推荐
BN折叠及其量化
Nacos installation and service registration
Selenium+pytest automated test framework practice (Part 2)
Notes 01
Five layer network architecture
Le modèle sentinelle de redis
SimCLR:NLP中的对比学习
LeetCode:394. String decoding
Heap (priority queue) topic
[text generation] recommended in the collection of papers - Stanford researchers introduce time control methods to make long text generation more smooth
[oc]- < getting started with UI> -- common controls uibutton
Advanced Computer Network Review(5)——COPE
CUDA realizes focal_ loss
AcWing 2456. Notepad
Post training quantification of bminf
Advanced Computer Network Review(4)——Congestion Control of MPTCP
Ijcai2022 collection of papers (continuously updated)
LeetCode:836. Rectangle overlap
[daily question] Porter (DFS / DP)
Redis之Bitmap