設為首頁收藏本站

艾歐踢論壇

 找回密碼
 立即註冊

QQ登錄

只需一步,快速開始

搜索
熱搜: 活動 交友 discuz
查看: 681|回復: 0
打印 上一主題 下一主題

The Features of C++ as a Language

[複製鏈接]
跳轉到指定樓層
樓主
發表於 2016-1-2 05:38:58 | 只看該作者 回帖獎勵 |倒序瀏覽 |閱讀模式
...is an open ISO-standardized language.
For a time, C++ had no official standard and was maintained by a de-facto standard, however since 1998, C++ is standardized by a committee of the ISO.
Their page may be accessed here.

...is a compiled language.
C++ compiles directly to a machine's native code, allowing it to be one of the fastest languages in the world, if optimized.

...is a strongly-typed unsafe language.
C++ is a language that expects the programmer to know what he or she is doing, but allows for incredible amounts of control as a result.

...supports both manifest and inferred typing.
As of the latest C++ standard, C++ supports both manifest and inferred typing, allowing flexibility and a means of avoiding verbosity where desired.

...supports both static and dynamic type checking.
C++ allows type conversions to be checked either at compile-time or at run-time, again offering another degree of flexibility.
Most C++ type checking is, however, static.

...offers many paradigm choices.
C++ offers remarkable support for procedural, generic, and object-oriented programming paradigms, with many other paradigms being possible as well.

...is portable.
As one of the most frequently used languages in the world and as an open language,
C++ has a wide range of compilers that run on many different platforms that support it.
Code that exclusively uses C++'s standard library will run on many platforms with few to no changes.

...is upwards compatible with C
C++, being a language that directly builds off C, is compatible with almost all C code. C++ can use C libraries with few to no modifications of the libraries' code.

...has incredible library support.
A search for "library" on the popular project-management website SourceForge will yield over 3000 results for C++ libraries.
A link to the results of the search may be found here.

C++语言具有以下特点:
1. C++是C语言的超集。它既保持了C语言的简洁、高效和接近汇编语言等特点,又克服了C语言的缺点,其编译系统能检查更多的语法错误,因此,C++比C语言更安全。
2. C++保持了与C语言的兼容。绝大多数C语言程序可以不经修改直接在C++环境中运行,用C语言编写的众多库函数可以用于C++程序中。
3. 支持面向对象程序设计的特征。C++既支持面向过程的程序设计,又支持面向对象的程序设计。
4. C++程序在可重用性、可扩充性、可维护性和可靠性等方面都较C语言得到了提高,使其更适合开发大中型的系统软件和应用程序。
5. C++设计成静态类型、和C同样高效且可移植的多用途程序设计语言。
6. C++设计成直接的和广泛的支援多种程序设计风格(程序化程序设计、资料抽象化、面向对象程序设计、泛型程序设计)。
7. C++设计成给程序设计者更多的选择,即使可能导致程序设计者选择错误。
8. C++设计成尽可能与C兼容,籍此提供一个从C到C++的平滑过渡。
9. C++避免平台限定或没有普遍用途的特性。
10. C++不使用会带来额外开销的特性。
11. C++设计成无需复杂的程序设计环境。



分享到:  QQ好友和群QQ好友和群 QQ空間QQ空間 騰訊微博騰訊微博 騰訊朋友騰訊朋友
收藏收藏 轉播轉播 分享分享 分享淘帖
回復

使用道具 舉報

您需要登錄後才可以回帖 登錄 | 立即註冊

本版積分規則

小黑屋|Archiver|手機版|艾歐踢創新工坊    

GMT+8, 2024-6-1 13:53 , Processed in 0.250799 second(s), 19 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回復 返回頂部 返回列表