Allikas: Vikiõpikud
Mine navigeerimisribale Mine otsikasti

CPP Tutorial C++ language is a distant relative of C programming language with added features such as type checking, object-oriented programming, management of exceptions, etc. You might term it a 'true C' It was Bjarne Stroustrup who built it.

C++ is a language of general use, and when I say general purpose it basically means that it is meant to be used in a broad range of contexts for the creation of applications. Features of C++ 1) Improved memory management – for better memory control, you can dynamically assign memory during runtime using the modern C++ operator, and erase it.

2) Object-oriented – C++ incorporates object-oriented programming features, which ensures that we can use common OOPs principles such as Abstraction, Inheritance, Encapsulation, and Inheritance in C++ programs, making it much simpler to write C++ code. In this sequence of tutorials, we'll discuss them in-depth.

3) Portable – Most C++ programmers follow ANSI standards that render C++ portable, so the code you write on one operating system can be executed on another operating system without any modification.

We can not assume that C++ is a fully platform-independent language because some aspects in C++ are not versatile, such as drawing images on a computer because basic C++ does not have any images or GUI API.

4) Standardized programming language – C++ features make it easy to split the issue into tiny blocks of code and format the software to enhance readability and reusability.

5) Exceptional handling - We can do exceptional handling in C++ much like Java and makes it easier to recognize and manage exceptions.

6) Easy – Last but not least, much like C, writing a program in C++ is simpler. When you get familiar with the C++ programming language syntax, writing in C++ gets even simpler.