1
00:00:01,690 --> 00:00:04,270
So hi, welcome to this new session.

2
00:00:04,780 --> 00:00:10,720
I hope you've got a pretty good idea of what flowcharts and solar calls are and how we can represent

3
00:00:10,750 --> 00:00:12,330
our solution to flowcharts.

4
00:00:13,360 --> 00:00:20,110
So it is very important because every landfill flowchart once, then what happens is it becomes very,

5
00:00:20,110 --> 00:00:26,400
very easy for us to for any kind of solution that we want to print in our program into our code.

6
00:00:26,740 --> 00:00:28,120
It becomes much easier.

7
00:00:29,360 --> 00:00:36,190
Because at least we have understood the first part and the second part is going to be how to write that

8
00:00:36,280 --> 00:00:40,180
in C++ or Java or whatever language you are working with.

9
00:00:41,410 --> 00:00:42,350
Okay, good.

10
00:00:43,170 --> 00:00:46,110
So going forward, we will be writing a lot of code.

11
00:00:46,200 --> 00:00:48,030
We will be doing lots of program.

12
00:00:48,460 --> 00:00:54,870
But before we start writing any program, I just want to give you a small introduction on, like, how

13
00:00:54,870 --> 00:00:57,030
exactly these programming languages work.

14
00:00:57,390 --> 00:00:58,920
What exactly is going on?

15
00:00:59,370 --> 00:01:03,510
For example, in case of C++, what exactly is going on?

16
00:01:04,470 --> 00:01:09,750
Generally what happens is so when you will be writing code, you will be writing something.

17
00:01:10,170 --> 00:01:11,390
Let's say you write some find.

18
00:01:18,200 --> 00:01:20,450
Let's say it has something like this.

19
00:01:28,180 --> 00:01:32,570
It is not exactly gold, but let's say I have done something like this.

20
00:01:33,900 --> 00:01:39,540
So I have some value, a some value to be and then I have some way, Lucy, which is the addition of

21
00:01:39,600 --> 00:01:40,560
first to values.

22
00:01:41,810 --> 00:01:49,220
This makes a lot of sense to us, like we can understand what exactly is written, because this is very,

23
00:01:49,220 --> 00:01:50,270
very close to English.

24
00:01:51,260 --> 00:01:54,260
It is very, very close to the language that we are used to.

25
00:01:55,290 --> 00:01:57,050
But what happens with the computer?

26
00:01:58,220 --> 00:02:01,100
So I don't know how many people know about it.

27
00:02:03,140 --> 00:02:05,000
Computer understand only banditti.

28
00:02:13,240 --> 00:02:16,920
It doesn't know what is A, what is B, what is 15?

29
00:02:17,080 --> 00:02:18,370
It doesn't have any idea.

30
00:02:19,510 --> 00:02:24,070
It knows that one one zero one zero one zero.

31
00:02:24,370 --> 00:02:26,170
Something like this pattern will come.

32
00:02:27,470 --> 00:02:34,460
Basically, I have bids coming in and every bid can either be given orders to do it, only understand

33
00:02:34,460 --> 00:02:36,030
binary and nothing else.

34
00:02:37,350 --> 00:02:38,520
OK, fine.

35
00:02:39,150 --> 00:02:43,590
Now I am writing something and I want my computer to run it.

36
00:02:44,310 --> 00:02:46,140
Computer, do this work for me.

37
00:02:46,980 --> 00:02:48,150
We are doing this only.

38
00:02:48,450 --> 00:02:49,680
OK, so what did the software.

39
00:02:50,250 --> 00:02:51,000
What is a program?

40
00:02:51,720 --> 00:02:55,410
Basically we write something and we want our computer to run it.

41
00:02:56,250 --> 00:03:00,240
If someone has made Chrome written millions of lines of code for it.

42
00:03:00,360 --> 00:03:03,840
Finally, there is a computer which is running that code, right?

43
00:03:04,680 --> 00:03:07,620
Finally, all the software is run by computer.

44
00:03:08,690 --> 00:03:10,970
But computer understand only binary.

45
00:03:12,710 --> 00:03:18,020
And if we are forced to write in binary, then sorry, we won't be able to do it.

46
00:03:18,530 --> 00:03:24,260
We will have to do a lot of hard work to write and banditti, and we will never be able to learn coding.

47
00:03:25,130 --> 00:03:28,400
So we want we will write like this.

48
00:03:28,910 --> 00:03:31,310
But computer gets input in some other.

49
00:03:32,990 --> 00:03:34,260
It is a very common problem.

50
00:03:35,030 --> 00:03:36,800
Let's say there are two people.

51
00:03:41,050 --> 00:03:47,400
The NBA to people, whatever language in those beat doesn't know that language and vice versa.

52
00:03:48,490 --> 00:03:54,790
So what we will do, there are two people who want to communicate but doesn't know each other's language.

53
00:03:55,120 --> 00:03:55,930
So what happened?

54
00:03:55,930 --> 00:04:00,220
Generally, a person will be made to sit between these two people.

55
00:04:01,510 --> 00:04:04,720
We call this person a communicator or an interpreter.

56
00:04:05,740 --> 00:04:07,990
So what this interpreter will do for us?

57
00:04:08,620 --> 00:04:10,310
It will take language off.

58
00:04:11,650 --> 00:04:15,920
And we tell me in whatever language we understand and vice versa.

59
00:04:19,320 --> 00:04:22,860
So interpreter converts all you can say, it translates language.

60
00:04:24,480 --> 00:04:28,770
So the language net, we understand, is very, very close to English.

61
00:04:29,520 --> 00:04:31,140
But computer industry and binary.

62
00:04:31,770 --> 00:04:40,050
So basically what we need is before we can run this program on our computer in between, we need a translator.

63
00:04:44,080 --> 00:04:44,710
Translated.

64
00:04:46,560 --> 00:04:51,120
Which will convert our language to computers, language and vice versa.

65
00:04:51,810 --> 00:04:54,150
We call this translator compiler.

66
00:04:57,790 --> 00:05:05,020
Compiler will compile our C++ code and will convert it to binary, which we can finally run on our computer.

67
00:05:05,390 --> 00:05:05,720
OK.

68
00:05:06,110 --> 00:05:09,010
That's what basically a compiler is going to do for us.

69
00:05:09,820 --> 00:05:15,610
It will take this from us and will go out to the computer, which will be binary.

70
00:05:19,280 --> 00:05:20,540
OK, great.

71
00:05:21,020 --> 00:05:22,400
So when you write some code.

72
00:05:26,070 --> 00:05:27,940
This could get comp. first.

73
00:05:28,560 --> 00:05:30,510
So it has to go through a compiler.

74
00:05:35,670 --> 00:05:37,770
And then we get an output file

75
00:05:40,280 --> 00:05:43,230
by Naty Output File.

76
00:05:48,180 --> 00:05:55,500
So this is my code compiler is going to convert my code into binary file, which can be destroyed by

77
00:05:55,500 --> 00:05:56,060
computer.

78
00:05:57,890 --> 00:06:01,730
Compiler not only convert our code, it does one more thing.

79
00:06:02,630 --> 00:06:05,090
It also find mistakes in my code.

80
00:06:06,170 --> 00:06:07,910
Sir, you cannot write like this.

81
00:06:08,000 --> 00:06:11,300
You have to write it like this and all those kinds of mistakes.

82
00:06:12,080 --> 00:06:16,250
So Compiler is going to find all those mistakes for us in this as well.

83
00:06:17,560 --> 00:06:20,600
Okay, so compiler will also find mistakes for us.

84
00:06:21,670 --> 00:06:29,320
OK, so we will come to know about many mistakes at compile time, only these errors are called compile

85
00:06:29,320 --> 00:06:37,300
time errors, some mistakes which the compiler can catch and some mistakes will be there with the compiler

86
00:06:37,300 --> 00:06:38,110
cannot catch.

87
00:06:39,110 --> 00:06:47,810
For example, let's say I have two numbers, A and B, I want to print their product so the output should

88
00:06:47,810 --> 00:06:48,980
be their multiplication.

89
00:06:49,760 --> 00:06:52,850
But I give output as A plus B.

90
00:06:55,210 --> 00:07:01,280
Now, the compiler don't know that I want to print their product, compiler will say, yes, it is valid.

91
00:07:02,210 --> 00:07:04,430
You are adding and addition is valid.

92
00:07:04,880 --> 00:07:09,620
So the compiler will let us do this, but actually we should have multiplied.

93
00:07:10,250 --> 00:07:13,190
So there is a mistake and compiler cannot catch it.

94
00:07:14,550 --> 00:07:17,370
So these types of mistakes will be caught at runtime.

95
00:07:18,300 --> 00:07:20,700
What we will do, we will run our program.

96
00:07:21,450 --> 00:07:25,020
It will run and the output will be different from expected output.

97
00:07:25,680 --> 00:07:28,800
And then we will come to know that we have done a mistake.

98
00:07:29,850 --> 00:07:36,650
So these types of error are called long time errors, runtime errors.

99
00:07:38,520 --> 00:07:43,280
So we will get some errors at compile time and some errors are trending.

100
00:07:45,890 --> 00:07:46,280
OK.

101
00:07:46,650 --> 00:07:48,710
So let us talk about a, b, e.

102
00:07:51,880 --> 00:07:54,810
Some people may be using Guarda blog Sayadi.

103
00:07:57,130 --> 00:08:02,310
Some people will be using their C++ idea and so on.

104
00:08:03,740 --> 00:08:04,700
So what idea?

105
00:08:04,760 --> 00:08:08,360
It does basically it will do all our work.

106
00:08:08,990 --> 00:08:13,180
There will be a play button and very quickly conduct play button.

107
00:08:13,370 --> 00:08:15,410
It will compile and run our program.

108
00:08:16,400 --> 00:08:19,260
So we don't have to compile ourself idea.

109
00:08:19,550 --> 00:08:20,240
We'll compile.

110
00:08:21,630 --> 00:08:22,770
OK, great.

111
00:08:23,220 --> 00:08:26,960
So I will be using God idee throughout this course.

112
00:08:27,750 --> 00:08:28,070
OK.

113
00:08:28,110 --> 00:08:30,300
So let us install cord locks, idee.
