So hello, everyone.
Welcome back to the cause.
So in this glass, in this video, we will write our first C++ program.
Okay, so let us get started.
OK, so let us talk about flowchart first.
So in flowchart, I was having a start blog.
Similarly, in C++, we will also have a START blog.
C++ also need a start blog.
So let's start logoff.
C++ is very simple.
It is an domain.
Okay.
So this is the start block of C++.
Now let us come back to the flowchart.
So after making start, look, what will I do?
I will do my work.
Similarly, I will do my work here.
I will write code here.
Okay.
And the code will be executed from top to bottom.
OK.
So after doing my work, what will I do?
I will end my flowchart.
I will end my program.
Similarly, I will end my C++ code.
Return zero.
Okay.
So let us write some code into in.
And then I'm having it done z2 here.
OK, so let's compile it.
So Bill Andron.
And yes, it works.
OK.
So it is working fine, but it is not doing anything.
Obviously this is very useless for us.
Let's add something.
OK, OK.
So let us bring up something.
Suppose I want to print haloed, ok.
So what happened is this printing thing is very common that C++ has given us an inbuilt.
We.
Okay.
So we will used it in built way and with the help of that inventory I will be able to print.
OK.
So the name of that command.
The name of that function.
The name of that inWorld thing is sealed.
So you out less than less than haloed.
Hello, world.
OK, OK, so let us compile Internet word before compiling.
I am telling you there will be an edit, OK, an error will come.
OK, so let us Blandon and here you can see our line number seven and we can read their history print
here.
Sealed was not declared in this scope.
So basically what is happening, Compiler is telling me, hey, I don't have any idea what this yowled.
OK.
So what is happening here?
Just wait a minute.
OK, so what is happening here?
You are using an inbuilt thing.
See, out is an inbuilt thing.
It is a inbuilt commando.
You can say it isn't and will function.
So we haven't tried the code footed.
OK, so the core of this is written in a file called Eyo Stream.
The functionality of C out is defined in a file and the name of that file is Eyo Stream.
What I want, I want to use CO2 in my current file.
I want to use the out in my current file, but the functionality of is written in this file.
So what I will do, I will include this file.
I have to tell my system that I am including this file.
So what will I do?
I will include this file.
And four including this file.
The commanders hash include ideastream.
OK.
So with the help of this line, compiler will come to know that hey, you are using sealed and the definition
of C out the functionality or C are the code for C out is written in this fight.
So the compiler will not give us error.
So let us write some code.
So what will I do here?
I will include a fine hash, include I, Ustream, I mostly means input output stream.
OK, we have to add one more line using namespace SDD semicolon.
OK, so what is happening here?
We all know why I'm including the first line, I am including first line because I want to use sealed
and sealed isn't in military.
It isn't in world command.
And the functionality of that command is written in this file.
I would stream so the compiler will not show us error that it is not able to find C out.
Now, let us talk about this line.
This line is not at all important.
You can forget about it.
But I'm just telling you what is happening here.
So what happened in C++?
I can create many name spaces.
This is a namespace.
And so on.
So Yoda's also written here.
CRT is also written here.
So we have to tell our system that, hey, I won't lose this C out.
And the name of this name is Spaces Astutely.
OK.
So this line is not at all important.
You forward out this line.
This line is important.
Why I'm including this line.
So the answer is very simple, because you want to use an inbuilt function.
So this is my code.
Let us build Emden.
OK, so Hallowell to get printed.
Okay, so let us print something more.
I'm copying it, condole, see?
And then control me.
Okay, so build Emden.
And Hallowell printed twice.
World.
And then Helliwell.
But it is not looking good.
There should be a new line.
The second Hellewell should be printed a new line.
OK, so the command, with the help of which we can go to a new line is C out backslash N.
So what is the meaning of the explosion?
So what I am doing here, first of all, I am printing this line helliwell so Helliwell will be printed
that I am telling the compiler, hey, go to next line.
So I will come the next line and different helliwell again.
So hello.
So what will happen.
This should be my output.
OK, so let us then let us compile and.
So Bill Andron.
OK.
So, yes, the second Hellewell is printed and new line.
We can do one more thing here.
There is no need of writing backslash.
And a new line you can write in the same name.
Also Ciotola word.
And then collection.
And then this.
OK, so let us come, Ballenden.
Well, guess what, output is same as previous output.
No changes.
So what is happening here?
First of all, you tell the compiler, hey, first print helliwell.
Then you're telling the compiler, go to next line.
So A has been printed and we come to a new line.
And then I am printing Hollowell here.
OK.
So there is also no need of this line.
You can read.
You can write this here also.
OK, so let us do it.
OK, so you can write multiple things in same line, as many as you want.
So let us build Emden.
Again, same output.
No changes.
This is used to go to New Line or against it.
And this line.
OK.
So what happened is this is very difficult, right?
You have to write first novel called Then Backslash then.
And then that will cause I don't prefer to use it.
So there is a shortcut.
There is an alternative to it.
We can write and then and line I enter the number of characters I assume.
But this is much better.
Many, many people use it.
Almost everyone use it.
OK, so let us write code
and line.
OK.
So I am telling the compiler, hey, first print helliwell.
Then I'm betting the compiler.
Now go to the next line.
And now I'm doing the new Bilour print Hellewell again.
OK.
So my question is from which line compiler will start exuding our program.
So what happens in case of flowcharts.
OK, suppose you are given a flowchart and the job is to read that flowchart.
So what will be your first step?
Your first step will be to find the start block.
You will first of all, you will find the start block.
And then from that start block, you will start executing good instruction.
Similarly, compiler will search various mean, various mean, wearies mean and the compiler will reach
here line number six.
So this is my start block.
Compiler, first of all, will reach here and now from line number seven.
It will start executing my programs in this direction.
Top to bottom.
OK, so let us experiment with this, see out what I doing.
I'm giving space, space, space, space, and I am also removing this endl.
OK.
So you can do whatever you want.
OK.
You are learning something for the best way to learn this new experiment.
OK, so what should be the output?
What should be our output to the output will be very simple.
What will happen?
First of all, compiler will print this part.
Compiler will print this part and then compiler will print this part.
And vote, these two parts will be printed in same line.
OK?
Because I'm not using and line here.
So both will be printed in same line.
OK, so let us come, Ballenden, compiling an.
You can see the output.
OK.
So now it does seem that we have written.
OK, so let's do an exercise.
So the question is,
what will be my output?
Chording somewhat I.
OK.
So what will with our board?
I am giving you two options.
The first option is.
The first option is my output will be chording without space.
Some will die.
And second option is chording with space.
Then somebody.
OK, so I am printing this and you have to tell me what will be my output?
This one or this one there does come by Linden.
And let us see our self verdel without.
So the output is goading somebody without any spaces.
OK.
So there is something very, very interesting happening here.
OK, so let's see what.
So the interesting part is whatever you write between these devil calls the outpouring be.
You can read anything here and the output will be this only, for example, in discussion.
I am branding cording and then I am branding somebody.
So, first of all, this is my start.
And this is my end friend of this cording.
So chording will be printed.
Okay.
So less than less than means I'm branding.
One more thing that will course start double codes and summarize.
OK.
So print somewhere.
So there will be no space.
What if I want to give space.
So what can I do here if I want a space between these two world.
There are two options.
Either you write space here space or just let us earn it.
And there's a space between chording and somebody.
The second option is where you can do here.
You do not leave space here.
You leave space before writing somebody's space.
OK.
So let.
Doesn't it.
And outproducing.
OK.
So there are two ways to print space between these two words.
You can also write space here also.
And space here also.
So end output.
There will be two spaces.
There are two spaces.
Okay, so let us do one more thing, see out.
Hello.
OK.
So you ever telling me the output?
So let us then come, Ballenden.
So there is an ad in line number eleven.
And the edit is hello was not declared in this scope.
So what is happening here?
OK, so what is happening here, compilers telling me he don't know the meaning of Halo hazing.
I don't know.
Hello.
So what is happening here?
Sealed.
Sealed is an inbuilt.
Come on.
OK.
We are not writing code for sealed, the code for Sealed is written in this file.
We are not writing it and we are just including that code in my current file.
OK, so the code for Sealed is written in such a way.
The functionality you see out has been met, has been defined in such a way that if you want to print
a string, if you want to print a string, then you have to include the strength in double codes.
Otherwise, it will give error.
OK, so this is some index.
So index of C++ language.
So in text means and grammatical good.
So you have to write hello.
And this way between double codes.
OK, so let's change our program.
So I will use double gold.
And now it is perfectly fine.
OK, so compiling an.
Chording somewhere I.
And then.
Hello.
Okay, so this is not good.
I won't hello.
To be printed in the next lane.
So what will I do here?
See out and Lane.
And now it is fine.
OK, so let us come by Landgren.
So the hello's in next line.
What can I do here?
I can also write like this.
And Lane and Lane and Lane and Lane.
Basically, I can write many statements in the same lane.
OK, so I can print many things, multiple things in the same line.
So let us compile Linden.
So you can see here, this is the fact off and line.
I can also read and learn here before printing hello.
What would I do?
Okay, so first let us remove it.
So before printing.
Hello, I can write like this and line and then print.
Hello.
First print and line.
First of all, the next line and then Bintel.
And now for this same goading somebody and then hello.
OK.
So what you can also do here, there is no need of this line.
Also control x control.
OK.
So let companion and also.
Cording Sammara.
And then hello.
Of course, what is happening here?
First, I am printing this word chording space, so cording.
And then a space.
Then I am printing space.
Somebody's space somewhere.
I then go to next line.
OK.
Come the next line.
Hello.
So this is my output.
OK, so I did.
OK.
So I think this is enough for an introduction.
So I hope you got a pretty good idea how CO2 is working and why I need to include this line.
OK.
Forward out this line.
This line is not at all important.
Forget about it.
This line is important.
Why?
I'm including this line and I hope you got a pretty good idea why we need double quotes, how CO2 is
printing and what is the meaning of this.
And line and line.
OK, so thanks for watching.