当前位置:网站首页>#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.
边栏推荐
- Spend more time with your computer on this special holiday, HHH
- Construction and maintenance of business websites [10]
- Analysis of neural network
- How does esrally perform simple custom performance tests?
- China's noise meter market trend report, technical dynamic innovation and market forecast
- Five message formats of OSPF
- Structured text language XML
- How is LinkedList added?
- It is said that this year gold three silver four has become gold one silver two..
- MySQL learning notes (Advanced)
猜你喜欢

基本IO接口技术——微机第七章笔记

【零基础一】Navicat下载链接

Welfare, let me introduce you to someone

Blue Bridge Cup Winter vacation homework (DFS backtracking + pruning)

kernel_ uaf

Redis分布式锁故障,我忍不住想爆粗...

MySQL learning record (7)

treevalue——Master Nested Data Like Tensor
![[zero foundation I] Navicat download link](/img/23/e7808884152eeaf186fe756d6adac6.png)
[zero foundation I] Navicat download link

A specially designed loss is used to deal with data sets with unbalanced categories
随机推荐
Huawei Hongmeng watch achieves fireworks display effect on New Year's Eve
B.Odd Swap Sort(Codeforces Round #771 (Div. 2))
Common authority query instructions in Oracle
Gbase8s database type
Accounting regulations and professional ethics [16]
China plastic box market trend report, technological innovation and market forecast
Market trend report, technical innovation and market forecast of China's Micro pliers
基本IO接口技术——微机第七章笔记
Golang embeds variables in strings
[CV] Wu Enda machine learning course notes | Chapter 12
MySQL learning record (8)
Chinese Indian seasoning market trend report, technical dynamic innovation and market forecast
Research Report on market supply and demand and strategy of China's plastic pump industry
Blue Bridge Cup Eliminate last one (bit operation, code completion)
[zero foundation I] Navicat download link
Analysis of enterprise financial statements [1]
【零基础一】Navicat下载链接
如何防止你的 jar 被反编译?
ctf-HCTF-Final-Misc200
Redis分布式锁故障,我忍不住想爆粗...