Introduction to programming - C ++ tutorial - course 1 - first steps

Introduction to programming - C ++ tutorial - course 1

In this tutorial we will learn the first things about programming. For this we chose the C ++ language, which helps us understand how programming works, but also increase the difficulty gradually to an advanced level. Although we at Venkon, we also use other languages ​​like Java, PHP, HTML, CSS, Javascript, we think C ++ is the best language for making the first steps in programming.

What program are we going to use?


We will use an IDE (developer development environment), namely Code :: Blocks, which you can download available here, where we select "codeblocks-16.01mingw-setup.exe".

After downloading a new "Console Application" project, we select the programming language and the file in which we want to work, and we can start programming.

About Compiler

In short, the compiler is the tool that turns our high-level language code into a high-level language that the processor can understand.

About Libraries

Libraries or Library are collections useful to programmers, where often there are functions or other tools that facilitate programming. An example is the math operations in the "math.h" library, or even "iostream", which helps us read and write to the console using cin (Console Input) or cout (Console OUTput).

About int main () {...}

In the main, as it is called, the content of the program is actually found. The instructions are executed from the top down, and when "return 0" is reached, the compiler knows that the main one is here. Any instruction in C ++ ends with ";"!
About variables

Variables are "boxes" in which we can retain values. An elementary type of variables is "int". This type of data retains integer values ​​from -231pana to about 231-1. (May vary according to compiler)

Several exercises:

1. A number on the keyboard is read. Store in a variable and display (as in the tutorial)
2. Read 2 numbers, store each one in a variable and make an interchange, then display. (As in the tutorial).

2. We read 3 numbers, store each one in a variable, and each of them takes the value of the next variable. We have a, b, c and a -> b, b-> c, c-> a; (The principle of inter-change with the auxiliary variable is used).

Introduction to programming - C ++ tutorial - course 1 - video tutorial

Andreas:

View Comments (20)

  • Welcome to the videotutorial.ro team and you can do a tutorial with recommendations on what kind of products to keep in mind (price-quality ratio, some technologies and certified certifications) for Black Friday, and here I refer to laptop deals, ssd- TVs. Otherwise we understand and select products when you have some recommendations and explanations as you have done in other years. Thank you for everything you do.

  • SUPER CONCRETE___You're the first to take courses in Romanian about C ++ ___ cochetez with microcontrollers and I'm interested _____ you are good man, I'm waiting for the following courses a good day and to be loved

  • Professional!
    Where have you been hiding so far more boys? Did not you have the courage?
    It came out very well.
    Thank you.
    Bafta and I expect other tutorials related to this topic.

Related Post

This website uses cookies.