C++标准,有点困惑?
我知道该标准于 1998 年获得批准,并于 2003 年进行了更新以修复该标准中的一些缺陷(ISO 标准),尽管我不确定 C++98 和 ANSI C 标准的关系。
我记得不止一次阅读 C++ 1998 标准是基于 C 标准之一,我会假设 ANSI C89 而不是 99,这是正确的吗?
另外,我是否正确地假设 C++0x 是下一个“即将成为”标准的官方别名,而 C++03..11..xx 只是针对 C++0x 标准的某些“更新”, C++11 只是 11 年发生的更新?
对于我的一生,我在网上找不到太多的东西,例如搜索什么是基于什么以及“C++ 标准列表及其引入的内容”,几乎什么也没有得到,除非我只需要一个新鲜的头脑来找到其他东西。
谢谢。
I am aware the standard was ratified in 1998, and an update to repair some defects in the standard took place in 2003 (the ISO standards) although I am unsure of the relation of C++98 and the ANSI C standards.
I remember more than once reading the C++ 1998 standard was based on one of the C standards, I would assume ANSI C89 and not 99, is this correct?
Also would I be correct to assume C++0x is the official alias of the next "to be" standard, and C++03..11..xx are just certain "updates" working towards the C++0x standard, C++11 just being the update that happened to take place in '11?
For the life of me I cannot find too much on this online, searching what was based on what and "list of C++ standards and what they introduce" for example comes up with nearly nothing, unless I just need a fresh mind to find anything else.
Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您是否尝试过维基百科文章?
迄今为止,只有两个 C++ ISO 标准:C++98 和 C++03。除此之外的所有内容尚未最终确定,统称为“C++0x”。 预计将在 2011 年或 2012 年成为标准,这就是为什么有些人已经将其称为“C++11”,但这还为时过早。
还有两个 ISO C 标准,C90 和 C99。 C90 本质上等同于 ANSI C89。
Have you tried the Wikipedia article?
There are only two C++ ISO standards to date, C++98 and C++03. Everything beyond that is not yet finalized and collectively referred to as "C++0x". It is expected to become a standard in 2011 or 2012, which is why some people already call it "C++11", but that's premature.
There are also two ISO C standards, C90 and C99. C90 is essentially equivalent to ANSI C89.
是的,C++98 与 C89 保持一致。与 C++03 相同,它是当前的官方标准,但与 C++98 非常接近,以至于许多人称其为旧标准的更新。
即将推出的 C++ 标准现在代号为 C++0x,但如果 ISO 今年获得批准,该标准将更名为 C++11。它是 C++03 的重大升级,将在一定程度上使 C++ 与 C99 标准保持一致(主要是在 C99 中引入的库功能方面)。
Yes, C++98 is aligned with C89. Same with C++03, which is the current official standard, but so close to C++98 that many people call it an update to that older standard.
The upcoming C++ standard is now codenamed C++0x, but will become C++11 if ISO manages to get it approved this year. It's a major upgrade of C++03 and will align C++ with the C99 standard to some extent (mostly in terms of the library features introduced in C99).