* .hxx和* .h头文件之间的区别? [英] Difference between *.hxx and *.h header files?
问题描述
扩展名* .hxx和只有* .h的头文件有什么区别?
它们可以共存吗?
Mark
What is the difference between the extensions *.hxx and just *.h for header files ?
Can they co-exist?
Mark
推荐答案
Mark Sullivan写道:
Mark Sullivan wrote:
有什么区别扩展* .hxx和只有* .h的头文件?
What is the difference between the extensions *.hxx and just *.h for header files ?
没有,真的。这也是一个FAQ:
http://www.parashift.com/c++-faq-lit....html#faq-27.9
他们可以共存吗?
Can they co-exist?
是。
-
Christian Hackl
Yes.
--
Christian Hackl
Mark Sullivan说:
Mark Sullivan said:
对于
头文件,扩展名* .hxx和* .h之间有什么区别?
What is the difference between the extensions *.hxx and just *.h for
header files ?
允许实现区分它们,但这样做不需要
。 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.
它们可以共存吗?
Can they co-exist?
当然,为什么不呢?实现几乎没有理由拒绝文件
,因为它有.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
On 17 Maj,17:12,ms ... @ nortel.com(Mark Sullivan)写道:
On 17 Maj, 17:12, ms...@nortel.com (Mark Sullivan) wrote:
扩展名* .hxx和只有* .h的头文件有什么区别?
他们可以共存吗?
马克
What is the difference between the extensions *.hxx and just *.h for header files ?
Can they co-exist?
Mark
是的,没问题。无论你想要什么,你都可以打电话给他们,甚至
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头文件之间的区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!