头文件的差异 [英] difference in header files

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

问题描述

.h和.hpp文件之间有什么区别

还请告诉我一些关于.rh文件的信息

-

Pradyut
http://pradyut.tk
http://groups.yahoo.com/group/d_dom/
http://groups-beta.google.com/group/oop_programming

印度

解决方案

文章< 42 ************** *********@authen.white.readfreene ws.net>,

Pradyut< pr ****** @ gmail.com>写道:

.h和.hpp文件的区别是什么


C不承诺.hpp文件可以是#include''d - unique

映射仅承诺(最多)6个字符后跟一个

单个字符。

还请告诉我一些关于.rh文件的信息




如上所述,C并不保证.rh文件也可用。

也许你正在考虑其他一些编程语言,比如说像C ++这样的


-

Ceci,ce n''est pas une idée。


Pieknego dnia星期三,2005年8月10日01:22:17 +0530,

osobnik Pradyut napisa3(a):

.h和.hpp文件的区别是什么



..hpp是c ++的头文件,而h是c


-

\ x6b \ x75 \ x6c \ x6b \\ x61


Pradyut写道:

* .h和a * .hpp文件之间的区别是什么


这些文件扩展名是任意但习惯。

你可以包含*任何*文件扩展名的文件或者根本没有。

还请告诉我一些关于.rh文件的信息




这里似乎做了什么。


* .h扩展名已添加到[UNIX]文件名中

表示该文件是C * header *文件

而不是C * source *文件。

* .hpp文件扩展名有时候使用

来区分C ++头文件和C头文件。


头文件是一个包含在顶部附近的文件(头部)

翻译单元(源文件)或另一个头文件。

它可能包含*任何*有效的C代码

但是头文件通常用于

将模块接口引入翻译单元/>
模块接口包含C预处理器宏定义,

类型定义,常量定义,

函数和变量声明

不要求编译器发出代码

或为对象预留空间。


what''s the difference between a .h and a .hpp file
Also please tell me something about .rh files
--
Pradyut
http://pradyut.tk
http://groups.yahoo.com/group/d_dom/
http://groups-beta.google.com/group/oop_programming
India

解决方案

In article <42***********************@authen.white.readfreene ws.net>,
Pradyut <pr******@gmail.com> wrote:

what''s the difference between a .h and a .hpp file
C doesn''t promise that a .hpp file can be #include''d -- unique
mappings are promised only for (up to) 6-characters followed by a
single character.
Also please tell me something about .rh files



As per above, C doesn''t promise that .rh files are usable either.
Perhaps you are thinking of some other programming language, such
as C++?
--
Ceci, ce n''est pas une idée.


Pieknego dnia Wed, 10 Aug 2005 01:22:17 +0530,
osobnik Pradyut napisa3(a):

what''s the difference between a .h and a .hpp file


..hpp are header files for c++, while h for c

--
\x6b\x75\x6c\x6b\x61


Pradyut wrote:

what''s the difference between a *.h and a *.hpp file
These file extensions are arbitrary but customary.
You can include files with *any* file name extension or none at all.
Also please tell me something about .rh files



Which is what appears to have been done here.

The *.h extension was added to [UNIX] file names
to suggest that the file was a C *header* file
instead of a C *source* file.
The *.hpp file name extension is sometimes used
to distinguish C++ header files from C header files.

A header file is a file that is included near the top (head)
of a translation unit (source file) or another header file.
It may contain *any* valid C code
but header files are commonly used
to introduce a module interface into a translation unit.
The module interface contains C preprocessor macro definitions,
type definitions, constant definitions,
function and variable declarations
that do not by themselves require the compiler to emit code
or reserve space for objects.


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

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