本文介绍了* .hxx和* .h头文件之间的区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

扩展名* .hxx和只有* .h的头文件有什么区别?

它们可以共存吗?


Mark

What is the difference between the extensions *.hxx and just *.h for header files ?
Can they co-exist?

Mark

推荐答案



没有,真的。这也是一个FAQ:




是。

-

Christian Hackl

Yes.
--
Christian Hackl




允许实现区分它们,但这样做不需要
。 C标准和C ++标准都没有提到.hxx文件名。

Implementations are allowed to distinguish between them, but are not
required to do so. Neither the C Standard nor the C++ Standard even so
much as mentions .hxx file names.



当然,为什么不呢?实现几乎没有理由拒绝文件

,因为它有.hxx后缀。


-

Richard Heathfield< http://www.cpax.org.uk>

电子邮件:-http:// www。 + rjh @

谷歌用户:< http://www.cpax.org.uk/prg/writings/googly.php>

Usenet是一个奇怪的放置" - dmr 1999年7月29日

Sure, why not? Implementations have little or no reason to reject a file
just because it has a .hxx suffix.

--
Richard Heathfield <http://www.cpax.org.uk>
Email: -http://www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999




是的,没问题。无论你想要什么,你都可以打电话给他们,甚至

a .pascal扩展也没关系 - 对于编译器来说!我会选择

你平台的既定惯例,但是会避免.h因为这对我来说看起来像是一个C头。


/ Peter

Yes, no problem. You can call them whatever you want, and even
a .pascal extension would be fine - for the compiler! I would go for
an established convention of your platform, but would avoid .h as this
to me looks like a C header.

/Peter


这篇关于* .hxx和* .h头文件之间的区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-09 11:30