Hey, guys, what's up?
So in this video, we will talk about inmate Saat function.
OK, so we know Selection's art, we know what those bubbles are.
But these two algorithms take time to implement, take time to implement.
So what happened is this sorting thing, this sorting thing is very common.
So since this thing is very common, C++ has given us an inbuilt function to so ordinary.
So what we have to write, for example, this is an array.
Offseason, so we just have to write Sade, a comma, a plus, and and our editor will get started.
OK, so this is inbuilt Saadeh function.
So let's see.
So I have already made a file in the name of the families involved sort that ship.
So I am taking the number of elements.
So this is my input and I am printing at edit here.
So what I need to do is I will write of a comma, a plus and and my error is now sorted.
OK, so is the name of the error and is the size of the error.
OK, so I get sorted.
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.
Why?
Because.
So Combinat is giving me error 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 CNN out, they both are defined in a header file called Ustream.
Similarly, Sard function is defined in a file called algorithm.
So we have to include this header file into our code so that this line works.
OK, so the functionality of site is defined in a header file called algorithm.
So we have to include that header file into our code.
So algorithm.
Now, let us come back again.
In a number of elements out of five, and that elements are five, four, three, two and one, this
is my outfought.
OK, so disheartening things look OK, so why we need to include this hydrofoil, because the functionality
in the definition of dysfunction has been defined in this file and we have to include this file into
our code to use this inbuilt SART function.
OK.
OK, so let's discuss one last thing.
So what happened is we have many other friends, we have many halophiles, for example, we have harshing
Claude.
ASTM.
We have seen that we have algorithm, we have hash included vector, we have hash included stack, we
have hash included kill 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 and what I did find this sort function is defined, then
I won't be able to use this sort function.
OK, so there are many header files in C++ and it is not possible to remember the names of all the other
files.
So we have something called Master Header File.
So the name of this master header file is made as S2, DC plus plus dot edge.
OK, so if you will include this header file 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 the other files in C++ will be included.
That is the reason we call it master header file.
And why do we need this 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, bates' as Tunisie Placeless dot edge.
OK, so this is Mostro had to file.
From now on we will use this header file in our call.
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 better and the compiler is not showing us error.
OK, so I have not included the murder file and the compiler is not showing us error.
Why?
Because this Mastretta file has included all the other files of C++ language.
OK, so that is the reason this so our function is not giving us added a similarly this scene and see
our function are also not giving us an ID because I ostrem file is also included in this file.
OK, so from now on, I will use this to.
OK, so this is it for this video.
Thank you.