当前位置:网站首页>#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.
边栏推荐
- Structured text language XML
- Analysis of enterprise financial statements [3]
- 发现你看不到的物体!南开&武大&ETH提出用于伪装目标检测SINet,代码已开源!...
- Welfare, let me introduce you to someone
- Chinese Indian seasoning market trend report, technical dynamic innovation and market forecast
- 【剑指 Offer】57. 和为s的两个数字
- [C language] [sword finger offer article] - replace spaces
- Market trend report, technical dynamic innovation and market forecast of China's low gloss instrument
- China plastic box market trend report, technological innovation and market forecast
- Plastic floating dock Industry Research Report - market status analysis and development prospect forecast
猜你喜欢
基本IO接口技术——微机第七章笔记
Basic knowledge of tree and binary tree (detailed illustration)
Huawei Hongmeng watch achieves fireworks display effect on New Year's Eve
Redis distributed lock failure, I can't help but want to burst
Cardinality sorting (detailed illustration)
[shutter] statefulwidget component (image component | textfield component)
Browser - clean up the cache of JS in the page
Baidu sued a company called "Ciba screen"
[shutter] shutter page Jump (route | navigator | page close)
Etcd Raft 协议
随机推荐
~91 rotation
Construction and maintenance of business website [5]
[shutter] statefulwidget component (bottom navigation bar component | bottomnavigationbar component | bottomnavigationbaritem component | tab switching)
MySQL learning record (5)
D4:非成对图像去雾,基于密度与深度分解的自增强方法(CVPR 2022)
Adding data to the head or tail of the rar file can still decompress normally
Etcd Raft 协议
It is said that this year gold three silver four has become gold one silver two..
Import a large amount of data to redis in shell mode
如何访问kubernetes API?
Analysis of enterprise financial statements [4]
AES encryption CBC mode pkcs7padding filling Base64 encoding key 32byte iv16byte
Get weekday / day of week for datetime column of dataframe - get weekday / day of week for datetime column of dataframe
Basic knowledge of tree and binary tree (detailed illustration)
How does esrally perform simple custom performance tests?
Physical layer cables and equipment
One week dynamics of dragon lizard community | 2.07-2.13
[C language] [sword finger offer article] - replace spaces
Read a doctor, the kind that studies cows! Dr. enrollment of livestock technology group of Leuven University, milk quality monitoring
Hot backup routing protocol (HSRP)