Hi everyone welcome to the first lesson in the upcoming videos.
I will teach you programming in C++ language.
I will try my best to cover all that topic from beginner to the expert level.
After finishing this course you will become proficient in C++ and being proficient in C++ never was
out-of-state and demand.
So let us get started in today's class.
We will be learning some basics of programming.
So first of all we should answer what does a computer do.
So you give input to the computer and the computer will generate the corresponding output.
So have you ever talked about how computer will understand our instructions.
We human can communicate to each other because we speak the same language.
For example English but there's a problem with the computer.
It is an electronic machine and it doesn't understand English.
It only understand binary and binary is basically 0 and 1 0 means you can see my switches off and one
means I can see my switches on.
In other words what begins a zero means false and one means through so if you want to communicate directly
to a computer you need to talk in binary.
So first of all let us discuss what is binary so binary is actually an ambush system.
We have many in my system.
So let us talk about number systems.
So now let us talk about number systems.
So number system can be categorized into two types rated number system and unweighted number system.
So the examples of could number system are basically the decimal number system by the number system
octane number system and hexadecimal number system.
There can be many mode.
The example of unweighted number system is basically telling them what system.
So let us discuss first and rigid number system what this and region number system.
So in and we didn't in my system each digit will have the same read each digit has been assigned the
same read.
Consider this example.
So this digit is assigned a very tough one this digit has also a very tough one.
And this is also has been assigned a very tough one.
Now let us talk about.
We did it in my system saying we did it in my system.
Each digit has been assigned some weight and weights will be different for different in my system.
So let us talk about decimal in my system.
We use decimal and the system in our day to day life in this decimal in my system 2 to 5 is not close
to 225.
They are different.
Older digital same.
We have to then we have three.
Then we have five.
Similarly we have two three and five digits are same.
But the values are different.
The views are different here.
Digit 5 has a very tough one digit 3 has a rate of 10.
And digital basically has a vote of hundred and here.
District 5 has a rate of one digit 2 has a vote of 10 and digital digitally basically has a vote of
hundred.
So basically if you will do like this what will do digit multiply makes corresponding with it and we
will add similarly we will multiply digit with its corresponding weight so three will be multiplied
by hundred two times hundred then two times ten and five times one and these two values are different
these two values will be different.
So we struggled in my system here.
We will learn more about my system deeply in our future classes.
So I was telling you that if you want to communicate directly to a computer you need to talk in binary
but it is impossible for us to talk or write in binary.
So we use programming languages alongside with the food charts and algorithms for solving a problem.
So let us take the help of our diagram.
So this is a beautiful diagram.
So what do we have here.
So I have a problem.
So what we will do so this problem will be passed through an algorithm.
Okay so what is any one of them algorithm is basically a procedure for solving a problem.
So we have many steps to solve the problem step one then we will perform step two.
And similarly there will be many more steps then what we do we will take the help of flowchart.
So what is flowchart flowchart is basically a pictorial representation or you can see the magnetic representation
off and you go to them pictorial or magnetic representation off and then go out of them.
So include chart.
We will be having many shapes like oval shape.
We can have below ground shape.
We can have rectangle shape.
We can have diamond shape and so on and then we will be having our programming languages so be it stands
for programming languages.
So we have many programming languages.
For example we can have C++ which will start in discos.
It can be Java.
It can be python and many more.
So we have many programming languages.
And finally we will get our solution.
Now let us discuss what is a programming language before discussing what is programming language.
Why do we need programming language.
Let us try to understand what is the need of a programming language.
So the answer is very simple computer only understand binary and we cannot talk in binary.
So we need the help of a programming language.
So programming language is a language with the help of which we can communicate to a computer.
In this course we are learning C++ programming language so like any other language in general programming
language will also have some words some symbols some rules in programming language the rules of grammar
the grammatical rules are called syntax so I'm going to beating myself like any other language in general
programming language will also have words symbols and rules of grammar so the rules of grammar has basically
a name which is called syntax simple.
No let us talk about different types of programming language.
So there are basically two types of programming language.
We have high level language and we have low level language and now let us try to understand the difference
between them.
So basically the high level language these languages are basically close to humans and low level language
are basically close to machines.
We can easily read and understand.
We can easily read and write high level language but for the low level language it is impossible or
you can say it is very difficult for us to read and write low level language.
The examples of high level language can be C++ it can be Java.
It can be Python.
It can be too sharp and so on the example of low level language is basically assembly language.
So let us understand it more clearly so we have our C++ language oriented Java or you can say bye to
language.
Then we have our assembly language then we have machine code which we will understand later where this
machine code.
And finally we are we are having something like IBM IBM and might be us.
So this is generally a flu so.
Now let us talk about how the high level instructions will be executed.
We have high level instructions or what we can say.
We can say human instructions.
So these human instructions will pass through a magical box and this magical box will contain two things
compiler and linker.
So this magical boxes is containing two things compiler and linker.
And finally our output will basically be a machine called machine code is basically zero once 0 1 0
1 0 1 1 and so on.
So machine code is basically zeros and ones.
Now let us try to understand what is a compiler and what is a linker.
So the purpose of compiler is basically it will read it will analyze it will translate our code we will
write the code in C++ language in this course.
So it will read analyze and translate our code to an objectified dot all will be the extension.
And what is the purpose of Linker so Linker what will do.
It will combine one or more object file which is generated by the compiler along with some other files
along with some library files to make an executable file.
Dot e x e will be the extension.
So let us take the help of our diagram to understand it better.
So we have this beautiful diagram with us.
Now what do we have here.
So we have source code so we can have many source codes.
So this source code.
What it will do so it will pass through a compiler.
So I have compiler here.
Similarly I have compiler here.
And similarly we have compiler here.
So this source code will pass through a compiler and the output will basically be an object code.
So this will be the output object code.
Dot e dot or is our extension dot or.
And similarly dot or then here we will be having our library file.
So we have library file or you can say library equal there is no need to worry for the local library
code.
We will see all these things in detail in our future lessons.
Now what is the purpose of linker.
So here is our link at present.
So what Linker will do.
So Linker will combine one or more object called along with the library file to make an executable file.
Dot e XY will be the extension.
So let me demonstrate to you with the help of an example during the standard better
just focus on my screen.
So I have this file here.
Demo da CPB.
CPB means C++ file.
No let us open this file I have written some code here and there is no need for you to understand what
is the meaning of this code.
Now this button is basically compiler Britain.
Now let us build and run our program so Hallowell is the output for this program no let us close our
output.
And now let us see our next drop screen again.
So see these two files nematode all and Democrat XY so these two files were not present earlier but
they are present now.
So what is the meaning of these two files.
So basically this dot all file this file is basically generated by the compiler and what is the purpose
of linker.
So Linker will combine this object code with some library code to make this dot e XY file.
Now let us come back to our class no let us discuss the last topic for today's class and the last topic
is basically variables.
Now let us try to understand what is the meaning of a variables so variables are basically simply cells
in a memory variable story information audio data.
So let us consider this example.
So I have written here and even come up to.
So P1 and b to other two variables.
So let's say the name of this cell is basically Beaven and the name of this cell in the memory lets
say its name is basically P2 so be when and b to are variables because they are cells in the memory.
For example if I write even a close hundred then what will happen.
So I will store hundred in memory location even and what will happen if I do P2 equals P1 so the meaning
of this line is very simple copy the content of P1 and to be true.
So what will happen P2 will also store hundred just like P1.
So basically B1 and B2 they are variables while there are variables because they have cells in the memory.
Okay so now let us discuss what is the meaning of integer so in the mean basically integer it stands
for integer so the meaning of descent is basically very simple.
This entry is B1 and B2 they will store only integer there is stored only integer you can see B one
variable is storing an integer hundred is an integer similarly B2 variable is also storing an integer
so that is the significance of writing in period.
So I think this is enough for introduction to programming and next class we will learn about flowchart
in detail.
Can't wait to see you in the next one.
Bye bye.