...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++设计成无需复杂的程序设计环境。
|