什么是标题? [英] What is a header?

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

问题描述

如果标题不一定是源文件,并且序列由

<和>在标题名称中不一定是有效的源文件名,

究竟是一个标题?

-

p-> m ==(* p).m == p [0] .m
http:// www.kdevelop.org
http://www.suse.com
http://www.mozilla.org

If a header is not necessarily a source file, and the sequences delimited by
< and > in header names aren''t necessarily valid source file names, what
exactly is a header?
--
p->m == (*p).m == p[0].m
http://www.kdevelop.org
http://www.suse.com
http://www.mozilla.org

推荐答案

" Steven T. Hatton" <苏****** @ setidava.kushan.aa>在消息中写道

news:h - ******************** @ speakeasy.net ...
"Steven T. Hatton" <su******@setidava.kushan.aa> wrote in message
news:h-********************@speakeasy.net...
如果标题不一定是源文件,并且序列由<分隔
。和>在标题名称中不一定是有效的源文件名,
究竟是一个标题?
If a header is not necessarily a source file, and the sequences delimited by < and > in header names aren''t necessarily valid source file names, what
exactly is a header?




一组声明。

这些声明的实际最终来源未指定。它通常是

a文件(通常使用相同名称)。


-Mike



A set of declarations. The actual ultimate source of
these declarations is unspecified. It''s typically
a file (often with the same name).

-Mike


Steven T. Hatton写道:
Steven T. Hatton wrote:
如果标题不一定是源文件,并且序列由
<分隔。和>在标题名称中不一定是有效的源文件名,
究竟是什么标题?
If a header is not necessarily a source file, and the sequences delimited by
< and > in header names aren''t necessarily valid source file names, what
exactly is a header?




从编译器的角度来看,它们不是''存在。预处理器

将源文件和头文件(通过#include)组合成翻译单元。


这只是程序员的便利。通过将所有

接口/声明包含在两者中,可以更轻松地参考

公共代码。


您将在其中看到的其他所有内容都只是用于编写程序的约定(或编码

标准)。就像在线上

你缩进或放括号。


- Pete



From a compiler''s perspective they don''t exist. The preprocessor
combines source and header files (via #include) into translation units.

It''s just a programmer convenience. It makes it easier to refer to
common code between translation units by including all the
interfaces/declarations into both.

Everything else you''ll see in there is simply the convention (or coding
standards) that were used to write the program. Like where on the line
you indent or put braces.

-- Pete


" ; Steven T. Hatton"写道:
"Steven T. Hatton" wrote:

如果标题不一定是源文件,并且由
<分隔的序列和>在标题名称中不一定是有效的源文件名,
究竟是什么标题?

If a header is not necessarily a source file, and the sequences delimited by
< and > in header names aren''t necessarily valid source file names, what
exactly is a header?




标题是_necessarily_一个独特的源文件预处理器显示




A header is _necessarily_ a source file that is exclusively distinctly visible
by the preprocessor.


这篇关于什么是标题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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