What is programming, compiler. Installing IDE

Arkadiusz Włodarczyk
A free video tutorial from Arkadiusz Włodarczyk
Excellent teacher, Expert in Programming
4.5 instructor rating • 18 courses • 267,075 students

Lecture description

You will learn what a programming language like C++/IDE and a compiler is. What is C++? 

Learn more from the full course

C++: From Beginner to Expert

Designed for people who don't have any knowledge about the programming and want to program in C++

16:13:02 of on-demand video • Updated April 2021

  • How to use C++ language in action
  • What is compiler / IDE / Variables / types of variables etc.
  • How to work with files - fstream library (i/o operation on files)
  • operators - arithmetic, assigment, logical, bitwise
  • conditions like if / else / switch
  • arrays / multi-dimensional arrays
  • loops - for / while / do-while
  • functions, overloading functions, passing variables to functions etc.
  • structures
  • referencers
  • pointers
  • dynamic allocation of memory
  • creating project in IDE
  • classes
  • object oriented programming
  • class and function templates
  • namespaces
  • exceptions
  • input / output streams and validation of data
  • STL: vector
English [Auto] Hello, everybody. Welcome to the first lecture in the upcoming videos. I will teach you the C++ language. I would try to cover all the subjects about the C++ from the beginner to the expert level. So after you watch all my videos, you should be able to create your own programs. But before we start the school adventure with programming, I want to explain you what the programming is. First, let's focus on the word language. Okay. What is language? Have you ever wondered what language means? Well, let's make a comparison. Right now I am talking to you and I am using what what kind of language? I am using English language. Right. So we are using some kind of code to communicate with each other. Right. And that thing is called language. We understand each other only only because we both know we both understand this code. And this code in our situation is made of world of words. Right. And each of that word has some kind of meaning which we all understand. That's why we are able to communicate with each other. But unfortunately, there is a problem with computers. When we look at our P.C., so at our piece, it's personal computers. We can say to the P.C., to heem sound things like, hello, --, drink me some beer. Right. And well, if the computer understood it and probably if our computer had some kind of legs that would allow him to move, he would bring it. Right. Okay. There is so much small problem here. He doesn't understand it. As you can see, because I am not drinking a beer right now. So we need to talk to a computer with a language that he can understand. Right. And what is that language? This language is called programming language. Right. So programming means creating understand able instructions, orders that will be followed about are our computers. They must be full. Right. The instructions that you give computer are followed. That's how it works. So if that instruction must be understandable, we need to talk in the language of our PSA is talking in. And that language that our computer know and understand is created of numbers. So it's like the 012 around on. There is much, much, much, much more zeros and ones. But why is it zero and one? That subject is connected with electricity. Are a computer can read only two pulses zero and one. And every message, every word, every instruction that is sent to our computer uses different sets of the zeros and ones. Whoa. That would be hard to talk to him using zeros and ones. Right. And as you might have probably noticed already, it will be probably impossible. Right. Can you imagine me writing a code using zeros and ones? It would be hard for us to use that language. And for sure, it would take lots of time to create any anything. And because of that, people created something between the computer's language and our land. Good that we use everyday, like, for example, English. Well, to be honest, many light languages like that have been created. But we will focus on something, what is called C++ in these scores. Now, using the C++ language, we could write, for example, something like get characters. Okay. And what that instruction could mean to our computer? Well, it could mean that we want to get characters, get characters from some kind of input. But as you can see, this is still not working. Right. We need time instruction that could be understandable by our computer. But it's not working. Why is that so? Because this is still not a language that our computer users. Right. It is not a sequence of zeros and ones. Right. This is the language that he uses. So we need something that will translate the C++ language instruction, like, for example, this one into these zeros and ones. Okay. And that thing that translates it is called a compiler. OK, compiler. So we have just learned a new word. And the process of translating that languages. OK. So from the instructions into zeros and ones, it's called compilation and we use it. So compilation and we use it for it. A program that is called Compiler. OK. So to download compiler in order to compile a code. Right. So when you compile a code, a program using a compiler, you are doing many things in behind the scene. Like for example, also checking the syntax of our Langan's language. So it's checking if we hadn't made a mistake. It's linking libraries. It's optimizing our program into many other things. But I don't want to go into these details right now. Right. You just need to know that compiler for now just translates. Write the code. The instructions into the zeros and ones in order to make them work. So we need a compiler, right. Without it, we won't be able to program those. So to start our adventure with programming, we also need an editor that will help us write programs in the C++ around language. Right. Because we want to write our programs in Google search engine. Right. Do you want to write programs in the Web browser your entire life? No. Right. So it will be great if that editor also had many additional features that will have us write programs like, for example, showing instantly where the arrow reads. Or it could also colorize our program so it would be easier to read. And that editor with all the features and it connected to a compiler. OK. So we've gone Pilar Preinstalled is called I the E. And it is a shot for integrated development environment. Okay. So I the E is some kind of a set of programs inside of that editor. Right. There are a set of programs that will help us write new programs. And after compiling, compiling these programs, we can run them on our PCN. So it's time to download Idee and we'll download the. This called code box. It is a free one. It is good for beginners. So we will be using it. Okay. You can use any other idea. But keep in mind, there might be a small difference. Let's start. You know how to create the broadens. So on. But do not worry. These differences are pretty small. And you will be surely able to manage them. I highly recommend Visa to your code. Okay. This is also very good idea for Mark. I also recommend X code. Okay. But we will focus on codebooks. So let's download. So in order to download called LOEs, we need to go on Caudillos website. Go to the download. Stop and click on the download the binary release. As you can see here, we can find versions for Windows. Right. And here, if you are using Gleanings or Mark, you can find also code looks forward for these systems. Now, what I would say is very, very important, because if you choose by MEAC, these things here, this link here, your well programs were will not compile. Why? Because if you do not install something, what is called compiler that I talked about before, your programs won't be able to be translated. Right. So here is something what is called mean GW. OK. And this is a compiler which is included in this setup. OK. And we need to choose these things here. OK. That one with mingy W. So don't choose these D or these. Choose the link with the mean G w. And then we click on D or D in order to download our code. So. They're called Look Looks is being downloaded right now. And now it's time to install it, right? So let's click on it. Next, we need to read license, of course, I agree. And as you can see here, we have good men, GW compiler suit. So we have got a compiler included. It's cliqued care. Let's go next install. I have already installed. So it asked if we want to keep existing folder. I just. I would just override everything. It will take some time to install it, right? It depends on how fast your computer is. OK. That's on our program. Now I need to properly set it in our recording room. We have got now here the idea integrated development environment and in this environment we can develop, you see, integrated those. Our own programs, right? We can develop our own programs at school and how to do it? Well, we need to first create the fine. So let's go here. Five new five new amplify. And now we can write here a cult. I write it now as fast as possible so you won't lose your precious time. I will explain all that. Go later, OK. Very simple program right now so we can just check if it's working. So let's include the library. Let's say that we are using the proper namespace and now we have to use the main function. And let's send something to the output so we can see something like let's welcome people, for example, hell award like that. OK. And now we need to save the file in order to save the file. I can go here, file and here, say five or use the shot control plus s. I'm using the shortcut and now it's very, very, very important here. I have got the name of my file and it's very important to not safe by default. This as a C. Language. OK. Because we are not programming into C language or programming the C++ language, if you by mistake do not adhere C++. You have to monologue type, you remember about it. I'm telling it five times because people make me see it here. Most time. And when you type the C++ plaskett, you are making sure you will compile this program as a C++ program. Okay. Let's save ZAPU. Safe barf. Let's save it. Well, we could, you know, call. It's a bit better, a lot untitled one like, you know, first program. Let's save it. And as you can see now, we have got our code colorize. And we can run it. Okay. We can write the using the built and run option here. Here it means that it's gonna build and then run the program. So it means he's gonna compile it because the compiler is hidden behind this button right now back. And as you can see here, we have got Cloward and some kind of additional message that is added by our compiler. Okay. But, hey, we've just compiled our first program can write it, right. Of course, we I would explain everything that you see here. Bettering future. Do not worry for it now. I just want to show you in this lecture how to compile things, how they work. Okay. Normally, if you are using either idea, you might have to stop your program manually. Remember to add then at the end, instruction like that system pose. And you have to probably not always include a library here. That is called like that. Okay. Just do it. And this will work if you cannot use the system. You might need to add something like that, get character. And also, this program will stop. Sometimes you need to also add you ain't. And here return zero. Okay. We do not need to edit here. We will not confuse that. So I will not confuse you anymore. OK. So let's just focus on this. The simples program, the most simple program ever possible to create. I will explain every section of river of profound to very deeply right in the next lesson. So do not worry right now. I would also like to focus on, you know, looking at one very important feature in this ideal area. I said something about the compiler. Right. And this compiler is hidden cupie and it's translated C++ plus languaging into the zero one one. Right. So into the computer language. And it also means that if I make any mistakes, like, for example, that, well, these words, I don't know. What does it mean? Well, it doesn't exist in my language. It doesn't exist in the sitars plus language. Right. So it will be probably hard to translate it when I click here. As you can see, our program did not run. We have got an arrow. And the cool thing about this idea is that when I click here, I would be instantly shown where this arrow is. And I also I can read here the arrow message that wor word word was not declared in this scope. This in this place. Right. What the hell is this? It is just I don't know how to react on this. You have to just delete it and then run again the program. And it's gonna work, work, work. Right. So as you can see, everything is working. Now, I'm inviting you to. Watch my other lectures. If you have any question, as always, feel free to ask.