c ++的新功能? [英] new features in c++?

查看:74
本文介绍了c ++的新功能?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

几年前我读了一本C ++书,学习了C ++的基础知识。从那时起,我几乎没有完成C ++编程

。现在我注意到例外,模板

和using namespace语句。这些东西是新增的吗?还是他们一直都在那里?

I read a C++ book some years ago and learned the
basics of C++. And I''ve almost done no C++ programming
since then. Now I notice stuff like exceptions, templates
and the using namespace statement. Are these things
new additions, or have they been there all along?

推荐答案

edware< er *** @ hotmail.com>写道:
edware <er***@hotmail.com> wrote:
几年前我读了一本C ++书籍并学习了C ++的基础知识。从那时起,我几乎没有完成C ++编程。现在我注意到例外,模板和使用命名空间语句之类的东西。这些东西是新增的,还是一直存在?
I read a C++ book some years ago and learned the
basics of C++. And I''ve almost done no C++ programming
since then. Now I notice stuff like exceptions, templates
and the using namespace statement. Are these things
new additions, or have they been there all along?




这取决于多少几年是。当前的C ++在1998年的b $ b $标准化,并且新的标准(有时称为C ++ 0x)将在未来几年内出现在
之内。尽管该语言在1998年的b
中标准化,但在编译器实现者之前可能还需要一段时间。实际上,我甚至不确定是否有100%完全符合标准的编译器,尽管从我看到的Comeau

编译器最接近(它是我所知道的唯一一个支持

模板的export关键字。


-

Marcus Kwok

将''invalid''替换为''net''以回复



It depends on how many "some years" is. Current C++ was standardized in
1998, and a new standard (sometimes called C++0x) is due to come out
within the next few years. Even though the language was standardized in
1998, it may have been a little while before compiler implementers
caught up. Actually, I''m not even sure if there is a 100% fully
standards-compliant compiler, though from what I have seen the Comeau
compiler comes the closest (it''s the only one I know of that supports
the "export" keyword for templates).

--
Marcus Kwok
Replace ''invalid'' with ''net'' to reply


edware写道:
几年前我读了一本C ++书籍,并学习了C ++的基础知识。从那时起,我几乎没有完成C ++编程。现在我注意到例外,模板和使用命名空间语句之类的东西。这些东西是新增的,还是他们一直都在那里?
I read a C++ book some years ago and learned the
basics of C++. And I''ve almost done no C++ programming
since then. Now I notice stuff like exceptions, templates
and the using namespace statement. Are these things
new additions, or have they been there all along?




他们自1997年11月以来就存在(实际上有一段时间

之前),当第一个C ++国际标准被批准时。

许多编译器也在之前实现了这些功能。


V

-

请在通过电子邮件回复时删除资金''A'

我没有回复最热门的回复,请不要''请问



They have existed since November 1997 (and actually some time
before), when the first C++ International Standard was approved.
Many compilers implemented those features before as well.

V
--
Please remove capital ''A''s when replying by e-mail
I do not respond to top-posted replies, please don''t ask


Marcus Kwok写道:
Marcus Kwok wrote:
edware< er *** @ hotmail.com>写道:
edware <er***@hotmail.com> wrote:
几年前我读了一本C ++书籍并学习了C ++的基础知识。从那时起,我几乎没有完成C ++编程。现在我注意到例外,模板和使用命名空间语句之类的东西。这些东西是新增的,还是一直存在?
这取决于多少几年?是。当前的C ++已经标准化了1998年,
I read a C++ book some years ago and learned the
basics of C++. And I''ve almost done no C++ programming
since then. Now I notice stuff like exceptions, templates
and the using namespace statement. Are these things
new additions, or have they been there all along?
It depends on how many "some years" is. Current C++ was standardized
in 1998,




实际上,_current_ C ++大约在2003年,当时进行了一些更正

标准。

[...]



Actually, _current_ C++ is circa 2003, when some corrections were made
to the Standard.
[...]




V

-

请在通过电子邮件回复时删除大写''A'

我没有回复最热门的回复,请不要问



V
--
Please remove capital ''A''s when replying by e-mail
I do not respond to top-posted replies, please don''t ask

这篇关于c ++的新功能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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