1
00:00:02,020 --> 00:00:03,550
Hey, guys, what's up?

2
00:00:03,880 --> 00:00:08,500
So in this video, we will talk about inmate Sarte function.

3
00:00:09,100 --> 00:00:14,260
OK, so we know Selection's art, we know what is bubbles art.

4
00:00:15,850 --> 00:00:20,590
But these two algorithms take time to implement.

5
00:00:21,460 --> 00:00:23,050
Take time to implement.

6
00:00:24,220 --> 00:00:30,160
So what happened is this sartin thing, this sorting thing is very common.

7
00:00:31,210 --> 00:00:38,220
So since this thing is very common, C++ has given us an inbuilt function, this identity.

8
00:00:39,070 --> 00:00:39,780
So what we have to.

9
00:00:39,820 --> 00:00:40,180
Right.

10
00:00:40,360 --> 00:00:41,920
For example, this is NRD.

11
00:00:42,890 --> 00:00:51,120
LifeSize in, so we just have to write Sarte a comma, a plus in and out.

12
00:00:51,220 --> 00:00:52,750
Eddie, we'll get started.

13
00:00:54,240 --> 00:00:58,620
OK, so this is inbuilt SRT function, so let's see.

14
00:01:01,800 --> 00:01:03,250
So I have already made a file.

15
00:01:03,450 --> 00:01:06,450
The name of the file is Inbuilt Sort Dot CPB.

16
00:01:07,200 --> 00:01:09,750
So I am taking the number of elements.

17
00:01:10,230 --> 00:01:14,580
So this is my input and I am printing the edit here.

18
00:01:15,270 --> 00:01:26,430
So what I need to do is I will write, start a comma, a bless and and my error is now sorted.

19
00:01:26,870 --> 00:01:27,070
OK.

20
00:01:27,420 --> 00:01:29,020
So is the name of the error.

21
00:01:29,770 --> 00:01:31,740
And and is the size of the error.

22
00:01:32,160 --> 00:01:32,410
OK.

23
00:01:32,640 --> 00:01:34,380
So I get started.

24
00:01:34,920 --> 00:01:35,430
Let's see.

25
00:01:37,350 --> 00:01:38,890
So the compiler is giving me error.

26
00:01:39,220 --> 00:01:40,090
And what is the error?

27
00:01:40,570 --> 00:01:43,580
So the error is compiler don't know what is sought.

28
00:01:44,020 --> 00:01:44,340
Why?

29
00:01:44,680 --> 00:01:45,250
Because.

30
00:01:48,970 --> 00:01:53,010
So Combiner is giving me adare at line number 14.

31
00:01:54,430 --> 00:01:58,740
It is saying that, hey, buddy, I don't know what do you mean by sort?

32
00:01:59,560 --> 00:02:06,040
So what happened is just like seen Nancy out there, both are defined in a high profile call IO stream.

33
00:02:06,850 --> 00:02:12,010
Similarly, Saadeh function is defined in a file called algorithm.

34
00:02:14,380 --> 00:02:21,440
So we have to include this had to file into our record so that this line works, OK?

35
00:02:23,530 --> 00:02:28,750
So the functionality of Sarte is defined in our head of file called algorithm.

36
00:02:29,230 --> 00:02:33,750
So we have to include that terrified into our code.

37
00:02:34,180 --> 00:02:34,570
So.

38
00:02:35,350 --> 00:02:36,370
And go rhythm.

39
00:02:40,380 --> 00:02:41,640
Now, let us come by again.

40
00:02:44,530 --> 00:02:50,470
Led to a number of elements out of five and that elements are five, four, three, two and one.

41
00:02:51,790 --> 00:02:52,750
This is my output.

42
00:02:54,130 --> 00:02:57,620
OK, so this are doing things look OK?

43
00:02:57,680 --> 00:03:03,170
So why we need to include this had profile because the functionality in the definition of this function

44
00:03:03,350 --> 00:03:05,230
has been defined in this file.

45
00:03:05,840 --> 00:03:08,020
And we have to include this file into other gold.

46
00:03:08,390 --> 00:03:11,180
They use this inbuilt SART function.

47
00:03:12,080 --> 00:03:12,430
Okay.

48
00:03:14,360 --> 00:03:15,650
OK, so let's discuss.

49
00:03:15,860 --> 00:03:16,670
One last thing.

50
00:03:19,450 --> 00:03:22,330
So what happened is we have many other finds.

51
00:03:23,350 --> 00:03:26,110
We have many header files.

52
00:03:26,740 --> 00:03:29,470
For example, we have hash include.

53
00:03:31,400 --> 00:03:32,150
I team.

54
00:03:34,330 --> 00:03:35,630
We have c met.

55
00:03:36,820 --> 00:03:42,490
We have algorithm, we have hashing included vector.

56
00:03:43,540 --> 00:03:45,460
We have hash included stack.

57
00:03:46,090 --> 00:03:49,120
We have hash included Q and many more.

58
00:03:49,510 --> 00:03:52,060
So we have many header files.

59
00:03:54,270 --> 00:03:54,450
OK.

60
00:03:54,580 --> 00:03:55,960
So we have many other files.

61
00:03:56,260 --> 00:03:59,170
So it is not possible to remember each one of them.

62
00:04:00,380 --> 00:04:00,610
OK.

63
00:04:00,890 --> 00:04:06,110
So, for example, here, if I don't know, invert I to this sword function is defined.

64
00:04:06,380 --> 00:04:09,200
Then I want to be able to use this sword function.

65
00:04:09,790 --> 00:04:10,200
OK.

66
00:04:10,820 --> 00:04:17,720
So there are many header files in C++ and it is not possible to remember the names of all their files.

67
00:04:18,350 --> 00:04:23,330
So we have something called Master Header File.

68
00:04:26,530 --> 00:04:35,760
So the name of this monster had to file is bits slash, S2, DC plus plus dot edge.

69
00:04:36,400 --> 00:04:36,650
OK.

70
00:04:36,910 --> 00:04:44,950
So if you will include this had defined in your code, then all the header files that exist in C++ will

71
00:04:44,950 --> 00:04:46,000
get included.

72
00:04:47,770 --> 00:04:48,910
OK, so one more time.

73
00:04:51,120 --> 00:04:59,820
So if you will include this file in your code, then all that defies in C++ will be included.

74
00:05:00,180 --> 00:05:03,450
That is the reason they call it master header file.

75
00:05:04,140 --> 00:05:06,090
And why do we need this had to file?

76
00:05:06,450 --> 00:05:11,820
Because there are many other files in C++ and we cannot remember all of them.

77
00:05:13,060 --> 00:05:14,770
So what we will do now is.

78
00:05:16,250 --> 00:05:20,450
We will remove both of them and we will right here.

79
00:05:24,500 --> 00:05:31,400
We will right here, bits slash as DDC plus plus dot edge.

80
00:05:32,090 --> 00:05:34,220
OK, so this is Master had to file.

81
00:05:34,790 --> 00:05:38,110
From now on, we will use this header file in other gold.

82
00:05:38,450 --> 00:05:38,830
OK.

83
00:05:41,850 --> 00:05:46,290
So a number of elements are five and the elements are three to one, four and five.

84
00:05:47,190 --> 00:05:52,810
OK, so one, two, three, four, five is getting printed and the compiler is not showing us error.

85
00:05:53,240 --> 00:05:53,490
OK.

86
00:05:53,730 --> 00:05:58,180
So I have not included a lot of them either file and the compiler is not showing us error.

87
00:05:58,250 --> 00:05:58,570
Why?

88
00:05:58,920 --> 00:06:05,670
Because this master had to file has included all their files of C++ language.

89
00:06:06,030 --> 00:06:08,490
OK, so that is the reason this.

90
00:06:08,550 --> 00:06:10,280
So our function is not giving us error.

91
00:06:10,680 --> 00:06:17,850
Similarly, this scene and S.L function are also not giving us edit because I ostrem file is also included

92
00:06:17,910 --> 00:06:18,930
in this had to file.

93
00:06:21,340 --> 00:06:21,670
OK.

94
00:06:22,070 --> 00:06:24,740
So from now on, I will use this had to file.

95
00:06:26,170 --> 00:06:28,070
OK, so this is it for this video.

96
00:06:28,180 --> 00:06:28,780
Thank you.
