当前位置:网站首页>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
边栏推荐
- Redis之核心配置
- Persistence practice of redis (Linux version)
- AcWing 2456. Notepad
- Pytest参数化你不知道的一些使用技巧 /你不知道的pytest
- postman之参数化详解
- Chapter 1 :Application of Artificial intelligence in Drug Design:Opportunity and Challenges
- 【shell脚本】使用菜单命令构建在集群内创建文件夹的脚本
- [sword finger offer] serialized binary tree
- Le modèle sentinelle de redis
- [OC-Foundation框架]-<字符串And日期与时间>
猜你喜欢
LeetCode41——First Missing Positive——hashing in place & swap
KDD 2022 paper collection (under continuous update)
Redis core configuration
Mathematical modeling 2004b question (transmission problem)
Advanced Computer Network Review(5)——COPE
[OC-Foundation框架]-<字符串And日期与时间>
CUDA realizes focal_ loss
Kratos战神微服务框架(一)
Improved deep embedded clustering with local structure preservation (Idec)
Intel Distiller工具包-量化实现1
随机推荐
Redis之cluster集群
Advanced Computer Network Review(4)——Congestion Control of MPTCP
Selenium+Pytest自动化测试框架实战(下)
[Hacker News Weekly] data visualization artifact; Top 10 Web hacker technologies; Postman supports grpc
Once you change the test steps, write all the code. Why not try yaml to realize data-driven?
Reids之缓存预热、雪崩、穿透
Pytest's collection use case rules and running specified use cases
Intel Distiller工具包-量化实现1
Redis cluster
Leetcode: Sword finger offer 48 The longest substring without repeated characters
Intel distiller Toolkit - Quantitative implementation 1
一改测试步骤代码就全写 为什么不试试用 Yaml实现数据驱动?
[shell script] - archive file script
LeetCode:236. The nearest common ancestor of binary tree
[three storage methods of graph] just use adjacency matrix to go out
Kratos ares microservice framework (I)
Blue Bridge Cup_ Single chip microcomputer_ PWM output
[sword finger offer] serialized binary tree
go-redis之初始化连接
MySQL uninstallation and installation methods