包括头文件 [英] Include header files

查看:79
本文介绍了包括头文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

请告诉我.以下面提到的方式包含头文件之间有什么区别.

1.#include< header>

2. #include"header.h"

预先感谢.

Hi Everyone,

Please let me know. What is the difference between including header files in below mentioned ways.

1. #include<header>

2. #include"header.h"

Thanks in advance.

推荐答案


基本上区别是在文件的预处理器搜索路径中.请参见> #include< filename>之间有什么区别?和#include文件名" [ ^ ].

请注意,headerheader.h是不同的文件.
Basically the difference is in the preprocessor search path for the file. See What is the difference between #include <filename> and #include "filename"[^] at stack overflow.

Note that header and header.h are different files.


请参见

这篇关于包括头文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆