c++stl简介
C++, as we all know is an extension to C language and was developed by Bjarne stroustrup at bell labs. C++ is an intermediate level language, as it comprises a confirmation of both high level and low level language features. C++ is a statically typed, free form, multiparadigm, compiled general-purpose language.
众所周知,C ++是对C语言的扩展,由贝尔实验室的Bjarne stroustrup开发。 C ++是一种中级语言,因为它包含对高级和低级语言功能的确认。 C ++是一种静态类型化,自由格式,多范例,已编译的通用语言。
C++ is an Object Oriented Programming language but is not purely Object Oriented. Its features like Friend
and Virtual
, violate some of the very important OOPS features, rendering this language unworthy of being called completely Object Oriented. Its a middle level language.
C ++是一种面向对象的编程语言,但并非纯粹是面向对象的。 它的诸如Friend
和Virtual
类的功能违反了一些非常重要的OOPS功能,使这种语言不值得被称为完全面向对象的语言。 它是一种中级语言。
C ++比C语言的优势 (Benefits of C++ over C Language)
The major difference being OOPS concept, C++ is an object oriented language whereas C language is a procedural language. Apart form this there are many other features of C++ which gives this language an upper hand on C laguage.
主要区别是OOPS概念,C ++是一种面向对象的语言,而C语言是一种过程语言。 除此以外,C ++还有许多其他功能,这些特性使该语言在C语言中占了上风。
Following features of C++ makes it a stronger language than C,
C ++的以下特性使其成为比C更强大的语言,
There is Stronger Type Checking in C++.
C ++中有更强的类型检查。
All the OOPS features in C++ like Abstraction, Encapsulation, Inheritance etc makes it more worthy and useful for programmers.
C ++中的所有OOPS功能(例如抽象,封装,继承等)使它对于程序员来说更有价值,更有用。
C++ supports and allows user defined operators (i.e Operator Overloading) and function overloading is also supported in it.
C ++支持并允许用户定义运算符(即运算符重载),并且其中还支持函数重载。
Exception Handling is there in C++.
C ++中提供了异常处理。
The Concept of Virtual functions and also Constructors and Destructors for Objects.
虚拟功能的概念,以及对象的构造函数和析构函数。
Inline Functions in C++ instead of Macros in C language. Inline functions make complete function body act like Macro, safely.
C ++中的内联函数,而不是C语言中的宏。 内联函数使完整的函数主体像Macro一样安全地运行。
Variables can be declared anywhere in the program in C++, but must be declared before they are used.
变量可以在C ++程序中的任何位置声明,但必须在使用它们之前声明。
翻译自: https://www.studytonight.com/cpp/introduction-to-cpp.php
c++stl简介