#include文件存储在哪里? [英] Where are the #include files stored?

查看:150
本文介绍了#include文件存储在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

这里有一个新手问题.在常见的C ++代码中,我们看到:

#include< iostream>
#include
#include

我可以知道这些cpp文件在哪里隐藏或存储吗?我只是想知道其中包含的工作方式,以及它们在哪里检索文件?

谢谢!
Chinho

Hi guys,

A newbie question here. In common C++ codes, we see:

#include <iostream>
#include
#include

May I know where are these cpp files hidden or stored? I just wanted to know how this include works, and where they retrieve the files?

Thanks!
Chinho

推荐答案


这应该可以说明您关于它们的几乎所有信息: MSDN:#include指令 [ ^ ]
This should explain you almost all about them: MSDN : The #include Directive[^]


这些文件通常存储在名为include的文件夹中.您将在包含所有C ++文件的文件夹中找到此文件夹
#include命令通过指示C预处理程序扫描指定的文件作为输入,然后继续处理当前文件的其余部分来工作.
简而言之,#include指令告诉C ++您需要有关某事的信息.它可以是函数或类声明,也可以是#defines或其他所有形式的东西,除了定义

导航给定链接
头文件 [
These files are stored generally in a folder named include. You will find this folder within the folder containing all the C++ files
The #include command works by directing the C preprocessor to scan the specified file as input before continuing with the rest of the current file.
in short The #include directive tells C++ that you want information about something. It can be functions or class declarations or #defines or all manner of stuff, except definitions

Navigate the Given link
Header Files[^]


这篇关于#include文件存储在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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