Introduction C++ || 11th CS || Chapter 3 #computerscience @a2zpractical991

A2Z practical
43 followers
@a2zpractical991
#cs #class11th #11th class #coding #computer
AI Generated·May contain errors
Video Summary
AI GeneratedThis introductory lecture for Class 11 Computer Science covers the fundamentals of C++, the role of Integrated Development Environments (IDEs), and the process of translating human-readable source code into machine-readable binary. It explains the technical differences between compilers and interpreters and breaks down the basic structure of a C++ program.
All the tools and resources you need are conveniently located in one single place.
Such platforms are called IDEs.
It doesn't make sense after doing it.
I mean, things like 0101 are present here
which is in human-readable format, in machine-readable format
Only a machine can understand him.
So, we say "object" to it.
What compiler do you need to keep?
It takes everything from whoever does the source.
And converts it into what?
Converts into machine language
Hello, how are you all?
You will all be great, you will all be wonderful.
My name is Rahul Singh.
From today, we are in class 11
Third chapter of computer science
Introduction to C++
Let's start right here, okay?
This C++ is ours from Maharashtra
If inside the board you are with anyone else
From the board, and where you people are
This is the C++ chapter, so
You can also watch this video
Don't waste time without moving forward
In the lecture, we further examine how we perceive things
How should I read it properly?
So, let me see
What is written in the introduction about
C++ is here in English
What I write, I do what I do
But the man, what is his name?
What is called missing inside what was previously C Programming?
The concept of Object-Oriented Programming did not exist within the C language.
So in 1979, the B&A Stroke Staff added some extensions inside C.
They introduced concepts such as Object-Oriented Programming.
They introduced even more functionality inside C++.
So initially we used to call it C with Class.
Alright, and why did C++ become so famous?
Because concepts such as Object-Oriented Programming were introduced inside it
Which we will study in our Class 12, okay
Just remember this: if anyone asks you
if C++ was first developed by some person
You should remember the name of Birni Stryo East, right?
Actually, it doesn't have any significance; I don't even remember the name.
It's fine if you guys ask about the history of certain things.
But if you happen to remember the things, it would be even better.
So first put C++ inside Bell Leveler's.
Inisseli called it the Cevit Class.
After that, its name kept changing with every new feature added
So, started speaking in C++ correctly, okay
So let's move on to our next slide and take a look.
Alright, instrument development, instrument, alright
You must have heard of the name "Sori Integat ID," just as you have
We are the Scud Sonna, which belongs to Macrosop, correct?
Intellia, then Delik Edit, then these blocks, so many like this
ID, check the ID, what's the point of creating an ID? So that your efficiency increases, your productivity increases. For example, suppose I'm developing some sort of software, right? I'll also be using Java there, right? And I'll be using Java
It also feels like it's coming through, and whenever any language seems to be appearing, what should I do? I could go to different platforms and write each feature in the respective programming language, then add them one by one. That would be better than having someone else do it.
Perkara is a text editor where we write code, right? But along with coding, it also provides all the necessary resources required for developing that software. It even makes available all the tools needed for development, all in one place. Right? So, that's it.
Because it provides all the tools and resources needed to develop SopTved in one place, it saves time. Exactly, the time consumed is reduced.
Productivity increases, efficiency improves, and we become more effective because we no longer need to handle tasks separately across different platforms—we get everything in one place. Okay, so there are many IDEs listed here that you can see.
II
What is this? This is a boring guy. When you want to do something with Rohan
If you want to get work done, what should I say to make them sell the leftover rice?
What is needed is an affidavit stating that whatever work is being done will increase the loan amount of Yans Loan.
Rohan's father says to Rohan, "Bring me a glass of water."
So, Rohan's mother had already drunk a glass of water before.
I mean, just bring a glass of water; its memory is already pre-set.
Then, when they say something, Rohan's mind will process certain things.
After processing, you will understand the things.
After understanding it, wherever water is kept
What is a program that, for the purpose of executing a specific task of an imaginary machine, is being prepared and gradually developed?
As long as we don't talk about things beyond basics, it's fine to talk about whatever basic things there are.
Because it's a concept far ahead, whatever we are doing—whether B.Sc., B.Tech, or similar—
There, they'll also learn how to multitask and multi-program more effectively, right? So Rohan's dad also gave him this task—what was the task? It was to get Rohan a glass of water—just like a computer system.
Son, it's very
Rohan, if you're feeling thirsty, drink some water.
But still, what have you been looking at? She said, "Inside, I could have become furious."
We have already sent the Hindi, Gujarati, Marathi versions to them.
If Maharashtra, then speak Marathi to your children, as that is their language.
Sorry, I don't know Marathi. Well, actually, the one who is their father speaks Marathi when asking his children to bring glasses of water.
If you were Gujarati, you'd speak in Gujarati; then what would language be? Language would be nothing but a mere nothing.
Mod up communication is fine, that we express our feelings and whatever thoughts we have, that's fine.
If our bank is coming, then the time for the alarm has arrived, the blood-red button must be pressed.
Those who speak in the gutter, they spit water at their son.
It's fine to bring it, and if there's anything else, it's okay too.
A single drop to the ocean...
Baipe Faculty Channel is the best!
The moment the light touched the surface…
To carry out the task
Alright
Both of them are appearing here.
source code and object code
Alright
We understand what source code and object code are.
What is source code?
source code
Things like this have meaning.
I mean, this is the kind of setup instruction it is
which is in human-readable form
Alright, as you wish
When we study C++ then in it
h include
It will be written in IO stream, correct?
Then it will be written here
using
namespace Okay
I write in a messy, scattered way.
Then it will have written int main
And here is where
It will have curly brackets like this
Alright
It will be written here
It is a mess.
May fall
include
What things will we understand?
But
I will write it here.
So that one
Set instruction
What are they called when they are in human-readable format?
And when you come from the search, go ahead to the left of the door, sir, through the passage, BB, just follow the path, and then turn left at the stairs. Dziękuję.
Surprisingly, it was
So when we provide our setup instructions in our human-readable format
So he would go inside the computer system and convert things into 01 format.
So, in the format of Jiro Uo, you're saying things that are your rent.
Vandhi for this examination is being held at the venue.
It is being indicated here that you people are being taken directly from your family into the shelter.
I mean, you understand why things are written this way because they're written in the English language.
You can read these things, but reading 010110 won't make any sense to you.
So meet me when you can read or have read the dakkar's pegar
Read something on the face, then read for your own sake, for surely the meeting with the immortal is imminent.
Let's take Rohan as an example. Here is Rohan, and Rohan has gone to Amedica.
There he met a boy named Sohan.
But Rohan only knows Hindi, what about Thikké?
Only Hindi comes to me, and only English comes to Sohan, okay now
Rohan has not been able to understand his words up to this point, and he has not been able to understand his words up to this point.
If I send her a message, Mother, why should this happen? These two will surely quarrel.
They can interact with each other just like users do.
And provide the reply converted into our language.
So that we also understand those things, okay, so what is a translator?
It is a program translator; what is a program? It is data.
translates source code into object code I'm just now at the previous slide, you
People are told what source code is and what object code is, that's correct.
Vas Lembéz Co
And and that program with d
You're trying to explain it
The compiler is Prince Hair
They are also typed very carefully.
Look, here are the types of Translator given here
Compiler is, Interpreter is, then comes Assembler.
Okay, what is this?
Type of translator
Okay, I hope you all have understood.
Look, here this Language is
This is some Coder who is coding
Why? Because Computer System
Which languages does it understand?
Binary Language understands
which is 0 and 1
0, 1 can be treated just like a switch.
When we turn on the Switch
Then we will represent it as 1 from it.
If we turn it off from him
We'll represent you from 0, right?
So, even during the rainy season, time passes by
What is a compiler?
What is an interpreter?
And what is an assembler?
Before that, let's understand a few things.
Okay?
Then we will come here and understand the things.
This is our first program.
Which is given in C++
Right?
And what about you people in the ant?
What is this?
This is the very program
Dhaw Program
is going to be executed
Alright, we'll understand it
Okay?
And this is C out.
What does it do?
Computer... look, C out and angular brackets
Inside double quotes
What does it do?
It works for printing.
print to screen
When the screen was boring
I am computer
I'm talking about the screen.
Okay?
And what does return 0 indicate?
that our program
terminated
Whenever you write return 0
So the program
should be terminated
Okay?
Look here
OK?
Whenever you
What is this?
C++
The first program syntax is
This one is for you
You should surely remember
Okay?
This is a basic structure.
of C++
Okay?
With whose help
You will do coding.
Okay?
So your things
OK?
But
When you write this program
Hach included
Hey, Estee
Int
Me
Then inside it
Steady
Double
colon
C Out
Then hello world
Then Riten Zero
So what will happen?
You understand
Look here
OK?
Now what does this mean
We people
After that
Understand
When you
This program
In this manner
Write it down
Okay?
You will run.
So the program
First, there must be a battle.
It starts
The man function
starts from
What does this do?
This computed screen page
Whatever it may be
Tako
What happens?
C Out
You will write.
And this
Angler bracket
and inside this double quotation
Say anything
OK?
Whatever you write
What will he do?
Now you will speak
What is an operating system?
Look, here are the things
It cannot be told even in great detail.
Because the operating system
Class 12 First Chapter
There, we people talk about operating systems
But I'll give you all a basic idea.
that there is a user
And there is a computer screen
Okay?
The user wants to interact with the computer.
But which language does the user speak?
The user comes.
Whatever is from our English
It comes naturally.
What language does a computer understand?
Binary language comes now, okay?
How will the interaction between the computer and the user take place?
Interaction takes place with the help of the operating system
Converts its language into this for it
R Graphic illustrates the interaction of things
with which the computer and the user interact with each other
Can get arrested
So the operating system that exists
The operating system acts as a type of interface.
What does the Interface do?
Alright
So
What should I tell you all?
As you will compile the program
Where does the compilation process start?
As it is started from the Main Program
But this code runs, updating the system runs
Because Iostream is a type of header file
Inside the header file, a lot of functionality is written in the form of code.
It is written in the code of codes.
Discourses of this kind are needed.
Who performs the work of resource and label assignment?
carries out
Hear the inclusion
Who uses the Hach?
What do you call the person who includes?
All headers included
The file is for including them
It is used
Whenever you write in the chat
So whatever functionality there is
Your program run starts from there.
which your compiler runs
C++-based language
We will understand what a compiler is.
They will also understand all these things.
But I am trying to explain to you all
if the structure of the program is known
So I'm telling you all
When compiler, interpreter, and then assembler
If I explain it, you all will understand the things even better in a much clearer way.
If you understand, then I hope you all
I will explain what I want to convey.
I mean, this is the main program
Because as you do in any text editor
I mean, VS Code
If you run the things, they should compile.
So, I keep doing compilation from the main program.
But the things above it don't run either.
Who will process this? Who will process this?
Who performs the task of the operating system?
Why why because inside it Iostream
There are many header files inside.
There is a lot of functionality written inside the header file, such as
If the program is written using cout, cin, then these
Don't programs also need resources?
Who performs the task of providing those items and labeling them?
operating system does
I mean all the processor directives there are
Who is responsible for running it?
It's the operating system, okay, then
Where will your main program be compiled from?
It will start from here, whatever it may be
functionality is cout, what does cout do?
Whatever is written inside double quotes
It works by printing onto the skin, showing the result directly on the skin, okay?
And what does return 0 indicate?
that my program is from here
will be terminated
Because we are not returning anything at all
return 0 These things here
Inside the parentheses, we
Passing the argument, okay
Argument and this return
Things like these
We will study our function in this chapter, okay?
So just keep that in mind, my friend
Why are you writing return 0
Passing the argument, okay
Whenever we
Classes will be held, okay?
Whenever we use standard functions
Which got c out, became indel
Alright, if c has been done, then we...
What will he write and read again and again with him?
std::double colon
Why, because we people are c out
What kind of class is this c out?
Whenever we have class
Alright, so what do we have to keep writing over and over again?
std::double colon
c out Okay, if we have
c is to be written, what does c do, user
It handles the task of taking input, okay?
Now we people based on input when
Alright, now understand here
Because c in what, c in also is a kind of class
Then whenever I use him too
Alright, so let me
std::colon colon will be read as such
I want to have my
In the program, std keeps repeating these things
Write, read, okay, so what will we do?
We will use another pre-processor directive
Alright, that one
What is a pre-processor directive, using namespace
What is this using, you people's
using pre-processor
directive is, and running it
Who performs the work, run it
Who will do the work, our operating
system does it, okay, and namespace
Do not write this repeatedly, in full
The entire program is written, correct, okay, its
if functionality is written, then look, when
I used namespace std; then
From here, std
Double colon, it has disappeared,
What happened? It's gone missing,
Alright, so I want my program to
I keep saying std
Double colon, no need to write it
We will have to use it for this.
using namespace standard, OK,
I hope you all understood this program
It will be, what does this program say
Chinkulud Ayo Steam,
What is Chinkulud, the pre-processor for Parcar?
Dart, I/O, Steam, what is I/O, what does Steam do?
Because I want to say Hello World,
It appeared printed on my computer skin.
Yes, whose full program is the C-Out?
It is written inside, inside the Steam app
It is written, Using Name Space Standar ki
Used, because I have as many classes as I do,
C Out and C In
With this, study double colon here
Using name space stander
In the meantime
Carli Breakend
C Out, Hello World
semicolon
Jiten Zero
What does a compiler do?
This program will take all programs together.
and converts it into Ubijit code,
I mean, all the programs that exist
What does he do with it? Lifts it up together and
What converts into machine language?
Alright
So, what does a compiler do?
Jago, compiler translate the entire source code
I mean this old, ancient source code here
Who will convert this into?
Converts it into the form of 0.1
What does a compiler do?
Compiler things
Jet has also written a program
I can't even lift a sweatshirt with my jet.
Converts it into the Masonic code
In executable format
It is done by linking on the 1st.
He converts it into that format.
We don't need to go there, right?
So what does this do, and in even more 01 format
whatever we have converted
It is a program; to run that program
Whatever resources you need are fine.
All those things are made possible.
Lifts it completely from the push.
And into what does it convert?
In the Masineri language
converts it, which is yours, people
01,11,01 Such static positions
Converts it for me
Okay, in binary language
Now the Doga compiler
What does a compiler do, and what are its uses?
What is done to it, what does the compiler do
As I run my program
Write this, include iostream
Alright, I'm leaving now, you people
I want you all to watch the program.
I'll erase this.
Look, carefully examine this program, what is written here
#include using namespace std;
Int, Main, Carley Bracket
Malo, that our
What does a compiler do, compiler syntax
It is used to correct errors, correct.
What does Syntax Error mean, here is the explanation
It will start showing an error if the semicolon is removed.
I mean, this syntax
It is used to perform error handling.
So our method in C++ language
It is a compiler-based language.
So, meaning that the compiler is for C++
Whatever syntax there is, that synthex
Checks it, and sees
Whoever is Bhangas, they encourage the entire Poraam.
And converts it into machinery code by executing it.
It's way too fast.
Look, what's written or arranged for the execution
I mean, any program that is compiler-based
Their executions are very fast.
So C++ is also a fast language, right?
And what is the disadvantage?
that requires an extra step to compile
So, as you convert this into machinery code
Then it also needs to be converted into an executable file.
I mean, an extra step is required, okay?
And what is disadvantage?
It is difficult to debug and find errors in it.
If our program for the goods is 500 lines long
We picked him up and executed him.
Now we are getting an error
There will be many errors.
Identify it, then debug the error
It will be difficult, okay
So these things
If an error or something similar occurs, it will take more time.
It is correct to find the error and then resolve it.
So this is its disadvantage.
Now, sorrow becomes one. interpreter
What does the interpreter do now?
What does the compiler do now?
Picks up the entire source code entirely
What does he do with it?
Converts into machine language
Should I tell you, then?
That picks up things line by line
Converts it into machinery code
I mean the machinery code.
converts it into object code
So what should I do?
Whatever statements there are
Whatever we have written in the line
set of instructions takes up that one statement
Will convert it into machinery code
it does not produce a
I mean, this isn't much of an extra step.
does not produce
As our compiler was producing that extra step
This task does not work with interpreter.
It is a thorn.
And here too, it says the same thing.
The interpreter executes the code line by line.
Executes it with him.
So, you all read these things.
What is written here?
Whatever our source code is
He will take his code line by line.
Then it will give output from it
output means in machine code
will convert
line by line
One minute
source code to the interpreter first
Converts into machine language and then processes
Whatever output is generated also displays the output itself
But what are the things to understand, look, and read
What will the source code do?
I will take one line of source code
What will you do with him?
Will convert into machine language
What will you do then?
It will take the second line of the source code
I mean that
What does an interpreter do?
Will pick up the code line by line
Converts into machine language
Now interpreter and
But it gives to Prabhaad, logical order, think
Or else gives a conditional order.
You're writing code
There is some error in the code logic.
Then he'll give the logical answer, okay?
As we know that we are any
Then we will start the IDER.
While you
Gampailar Base Program is on
If you divide the number by zero there
No one gives any ID card.
That's right, that's the difference.
Gampailar Base Program
Who are the participants in the Inter Base Program now?
Python is your Java Script
And Ruby is, how is this language
This is an interlanguage.
Hey, I hope you all are doing well.
Explain it, and our advantage with regard to this
Thike, and Dogo, the last one left
Our assembler, assembler
A mid-level language is a type of programming language.
You will read when
You will go to Class 12 in 8085
Thike, so there it is
You will read assembly language
Time, this compiler
What does it do, as it happens?
What does assembly language do?
Converts into the budget code, okay, so
Here it will be written: VIA, Assembler is a computer
Program Date Translate
assembly language code into machine code
This is a two-line assembly language for you all.
Move 5 into AX
In this kind of format, whatever language is written
They speak assembly language with him.
And this language
Who performs the task of converting into machine code?
assembles
So I hope you will explain it to them
What is an assembler?
What is an interpreter?
And this understanding of syntax, it will help you all
Efforts have been made to explain in a better way.
I hope you will explain things to you people.
Alright
What do we do now?
Let's talk about something.
What I just told you all
How does the interpreter throw an error?
While ours
Compiler-based
The program that is
What does a compiler do, exactly?
It gives a syntax error.
Alright
Then I'm going to my computer system.
And by doing things, you people
I'm trying to explain it.
Alright
Hello, friends
Whatever is written
angle brackets
It's fine inside double quotation marks
Those things are printed things for us.
I've already told you all.
Look here, right here
It's showing double colon again
Alright
What shall I write?
Hello World
Alright
So when I write Hello World
So my computer
Look here
Output where it is written
Look, where my mouse is going
Look here, here is where you all are located
So, enable this type of error
I mean compiler
Because in C++ I already told you all, didn't I?
What kind of language is C++?
C++-based language
Alright
So how do you get the error?
They give compilation errors
I mean, they give syntax-based errors.
Now, as I put a semicolon here
Alright
I hope you all understand.
Alright
Look here
I'll show it again
Look here
What am I supposed to do here?
I am typing the semicolon again here
Semicolon pressed
When semicolon was pressed
And then I ran
So what did I find out
Alright
This is me writing in Python
Alright
Tai Hob, I'm talking to you all
If you know a little bit of Python
You will understand then
Even if I don't understand it
Don't worry about it.
What I want to explain to you all
that the interpreter provides logical order
You cannot divide any number by zero.
That was a logical thinking, wasn't it?
So what does this do?
This gives the logical ID.
Interpreter OK
Now you people
If I write it in C++
So, look, it won't give you an error
Look at the date
As we move forward in Lexar
You people need to do these things with something
It will be fine, okay
Just look at what I'm doing
And try to understand what I am doing.
Look, A equals 10
Syntax here is very important.
Look, I didn't specify there what kind of data type A was.
An integer number is a whole number.
What is the value of Tike?
Ten hai teke
Then the int
What should I write for Int B?
Zero Tike
Then what should I write for Int C equal to?
I am A divided by B
Then semicolon
The compulsion is to impose, and here it is
What do we use to print things?
We use C out.
What do you use C out for?
What do I need to C out?
If you want me to write what I've written
What do they do for that very print?
We put double colons.
If I put a double colon, what should I write?
I write the answer, I write.
You won't understand LIGHT
Don't worry about it.
In our upcoming lecture, we
We will understand this in an even better way.
So you all must understand the things.
I'm just telling you all
What on earth is he going to do now?
This will not give any error.
Because no matter how many syntaxes you write for it
I didn't write anything messy in it.
Don't write anything at all.
So this won't give any kind of error
It will not generate any output at all.
floating point exception
No error was reported
There must be some exception, tell me something.
Now, exception handling, such as
The concept we will study in our upcoming lecture
When we go to class 12, there we will be
You people could have done these things in an even better way
I'll understand, but both of you something
There is no error generated.
Whenever Hanga came, no matter how
So he used to keep some errands going.
What used to come here?
Is this an error,
We will call using a semicolon
You don't see it, do you?
So I am very much aware that
I'll explain a few things. If you agree, then right now I'm going to give you
Whatever else about the compiler and the interpreter, and this
The concept is that I'll code it right away and send it to you.
I tried to explain something. I hope you understand.
You must have understood the things, so thank you until then.
In my next lecture, I will have a great lecture for all of you.
Thank you, thank you so much
