Many novice programmers find it very difficult to find suitable literature where it would be detailed and simple Russian to write how to program in C ++. In bookstores and online there are a lot of literature devoted to so-called “advanced” users. I myself have encountered this problem and I want to share my little while, but every day growing knowledge in this field of programming. So, let's begin! And so what is this C ++ language? The C ++ programming language is one of the most popular (if not the most popular) programming language. It is the C ++ that allows you to write a program using object-oriented approaches and, at the same time, is quite “fast”. As you probably already understood, C ++ was created on the basis of C (and he, I must say, was created under the influence of Simula language dated 1967). From the very beginning, it was emphasized that C ++ is the development of C language. However, the main difference With ++, when it first appeared, there was explicit support for an object-oriented approach to programming. Let's write some features of the C ++ language: - C ++ provides a complete set of structured programming statements. - C ++ offers an unusually large set of operations. - In many cases, programs written in C ++ are comparable in speed with programs written in assembly language - Many C ++ operations correspond to machine instructions and therefore allow live transmission to machine code - A variety of operations allows you to select their various sets to minimize the resulting code - C ++ supports variable pointers and functions You can write about this language for a long time, but let's better analyze it with a specific example. Let's not write the notorious “Hello World” program, let's look at something more complicated. Create a program that will calculate the area of ​​the rectangle - enters two real numbers from the keyboard, gets their product and displays it on the screen. // #include <iostream.h> float x,y,s; int main () { cin >>x>>y; s=x*y; cout <<s; return 0; } Let's analyze each line in detail: 1. The text bounded by brackets from // characters serves as a commentary to explain the program. It does not affect the execution of the program, but significantly improves its visibility. The text started with two slashes lasts only to the end of the line. 2. #include <iostream.h> - a preprocessor command called a directive, inserts text from iostream.h into the program, containing a prototype of the standard streaming input / output functions. 3. Type Lines int main () { ... / * main function body * / } make up the definition of the main function of the program. A program may consist of several functions. But one of them must always be a main function with which the program starts. 4.cin, cout, stream entry and exit operators respectively. Signs >> and << play the role of arrows indicating the direction of data transfer. 5. Operator return 0 instructs to complete the execution of the function, read its value number 0 and return to continue the program that started this function. And so, we have disassembled a simple C ++ program. This is just the first step in learning this language. The continuation of the article will be written soon.