当前位置:网站首页>#include<>和#include“”的区别
#include<>和#include“”的区别
2022-07-02 21:33:00 【向芯】
一、查找的目录不同
1、#include<>:编译器直接从系统类库目录里查找头文件:
#include<stdio.h>
比如在VS2013中,编译器会直接在<Visual studio 2013安装目录>\VC\include目录下查找到stdio.h这个文件,这就是编译器的类库目录;在Linux GCC编译环境下,一般为/user/include和/usr/local/include。
如果类库目录下查找失败,编译器会终止查找,直接报错:No such file or directory.
例如,我们自定义一个头文件"test.h",把它放在项目工程文件所在目录,然后用“#include <>”的形式加载头文件test.h,编译时会直接报错:No such file or directory.
边栏推荐
- 如何防止你的 jar 被反编译?
- [use of pointer and pointer and array]
- Etcd Raft 协议
- [C language] [sword finger offer article] - replace spaces
- Construction and maintenance of business websites [8]
- One week dynamics of dragon lizard community | 2.07-2.13
- System (hierarchical) clustering method and SPSS implementation
- Research Report on market supply and demand and strategy of China's plastic pump industry
- 发现你看不到的物体!南开&武大&ETH提出用于伪装目标检测SINet,代码已开源!...
- pip安装whl文件报错:ERROR: ... is not a supported wheel on this platform
猜你喜欢
Basic IO interface technology - microcomputer Chapter 7 Notes
[shutter] statefulwidget component (floatingactionbutton component | refreshindicator component)
[zero foundation I] Navicat download link
Check the confession items of 6 yyds
Common routines of compressed packets in CTF
基本IO接口技术——微机第七章笔记
PIP version update timeout - download using domestic image
MySQL learning record (4)
CVPR论文解读 | 弱监督的高保真服饰模特生成
[shutter] shutter layout component (opacity component | clipprect component | padding component)
随机推荐
How is LinkedList added?
Gbase8s database type
MySQL learning record (5)
Accounting regulations and professional ethics [17]
Construction and maintenance of business websites [6]
The web version of xshell supports FTP connection and SFTP connection
VictoriaMetrics 简介
Research Report on right-hand front door industry - market status analysis and development prospect forecast
Off chip ADC commissioning record
Construction and maintenance of business websites [10]
Share the easy-to-use fastadmin open source system - Installation
如何防止你的 jar 被反编译?
[Yu Yue education] reference materials of analog electronic technology of Nanjing Institute of information technology
Browser - clean up the cache of JS in the page
Go web programming practice (2) -- process control statement
GEE:(二)对影像进行重采样
Capacity expansion mechanism of ArrayList
Pyqt picture decodes and encodes and loads pictures
Market trend report, technical innovation and market forecast of China's Micro pliers
[dynamic planning] p1220: interval DP: turn off the street lights