C ++ 0x和C ++ 11有什么区别? [英] What is the difference between C++0x and C++11?

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

问题描述

我在SO上看到这两个术语的混合用法。

I see mixed usage of these two terms here on SO.

维基百科说


C ++ 11,以前也称为C ++ 0x。 ..

C++11, also formerly known as C++0x ...

但我不确定为什么。


  • 为什么先叫C ++ 0x,然后叫C ++ 11?

  • 此外,x代表什么?我的猜测-像变量一样?

推荐答案

C ++和C标准通常以年份命名

C++ and C Standards are usually named after the year they are published in, which makes it easier to remember by.

例如,在C ++中,原始标准发布于1998年,因此我们谈论C ++ 98 ,当我们提到它于2003年发布的第一个更正时,我们谈论的是C ++ 03。

For example, in C++, the original Standard was published in 1998, so we talk about C++98, and when we refer to its first correction, published in 2003, we talk about C++03.

据称,下一个标准将针对2008年,但由于不确定,因此将其称为C ++ 0x,其中 x 表示8或9。实际上,众所周知,改变了,所以我们最终使用了C ++ 11。

It had been purported that the next Standard after would be done for 2008, but since it was uncertain, it was dubbed C++0x, where the x stood for either 8 or 9. In practice though, as we all know, the planning shifted and so we end-up with C++11.

仍然,对于下一个版本(C ++ 1x),Bjarne Stroustrup表示他打算在5年(大约是2016年)。目前,已经对核心语言(概念,模块和垃圾回收)进行了一些更改,并且重点似乎更多地放在扩展库(例如文件系统)上,但是还很早,所以谁知道!

Still, for the next version (C++1x), Bjarne Stroustrup stated his intent to do it in 5 years (so about 2016). For now, there are changes envisionned to the core language (concepts, modules and garbage collection), and the focus seems to be more on extending the library (filesystem for example), but it's still early so who knows!

这篇关于C ++ 0x和C ++ 11有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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