Hey, guys, what's up?
So in this video, we will talk about inmate Sarte function.
OK, so we know Selection's art, we know what is bubbles art.
But these two algorithms take time to implement.
Take time to implement.
So what happened is this sartin thing, this sorting thing is very common.
So since this thing is very common, C++ has given us an inbuilt function, this identity.
So what we have to.
Right.
For example, this is NRD.
LifeSize in, so we just have to write Sarte a comma, a plus in and out.
Eddie, we'll get started.
OK, so this is inbuilt SRT function, so let's see.
So I have already made a file.
The name of the file is Inbuilt Sort Dot CPB.
So I am taking the number of elements.
So this is my input and I am printing the edit here.
So what I need to do is I will write, start a comma, a bless and and my error is now sorted.
OK.
So is the name of the error.
And and is the size of the error.
OK.
So I get started.
Let's see.
So the compiler is giving me error.
And what is the error?
So the error is compiler don't know what is sought.
Why?
Because.
So Combiner is giving me adare at line number 14.
It is saying that, hey, buddy, I don't know what do you mean by sort?
So what happened is just like seen Nancy out there, both are defined in a high profile call IO stream.
Similarly, Saadeh function is defined in a file called algorithm.
So we have to include this had to file into our record so that this line works, OK?
So the functionality of Sarte is defined in our head of file called algorithm.
So we have to include that terrified into our code.
So.
And go rhythm.
Now, let us come by again.
Led to a number of elements out of five and that elements are five, four, three, two and one.
This is my output.
OK, so this are doing things look OK?
So why we need to include this had profile because the functionality in the definition of this function
has been defined in this file.
And we have to include this file into other gold.
They use this inbuilt SART function.
Okay.
OK, so let's discuss.
One last thing.
So what happened is we have many other finds.
We have many header files.
For example, we have hash include.
I team.
We have c met.
We have algorithm, we have hashing included vector.
We have hash included stack.
We have hash included Q and many more.
So we have many header files.
OK.
So we have many other files.
So it is not possible to remember each one of them.
OK.
So, for example, here, if I don't know, invert I to this sword function is defined.
Then I want to be able to use this sword function.
OK.
So there are many header files in C++ and it is not possible to remember the names of all their files.
So we have something called Master Header File.
So the name of this monster had to file is bits slash, S2, DC plus plus dot edge.
OK.
So if you will include this had defined in your code, then all the header files that exist in C++ will
get included.
OK, so one more time.
So if you will include this file in your code, then all that defies in C++ will be included.
That is the reason they call it master header file.
And why do we need this had to file?
Because there are many other files in C++ and we cannot remember all of them.
So what we will do now is.
We will remove both of them and we will right here.
We will right here, bits slash as DDC plus plus dot edge.
OK, so this is Master had to file.
From now on, we will use this header file in other gold.
OK.
So a number of elements are five and the elements are three to one, four and five.
OK, so one, two, three, four, five is getting printed and the compiler is not showing us error.
OK.
So I have not included a lot of them either file and the compiler is not showing us error.
Why?
Because this master had to file has included all their files of C++ language.
OK, so that is the reason this.
So our function is not giving us error.
Similarly, this scene and S.L function are also not giving us edit because I ostrem file is also included
in this had to file.
OK.
So from now on, I will use this had to file.
OK, so this is it for this video.
Thank you.