No, you can go to and smaller demo session there.
We will be setting up our environment in our system to do programming in C++ and the basic structure
of C++ program.
Also, we can cover in this section.
So throughout this course, we will be using an integrated development environment where we will be
writing, compiling and running C++ programs and a development environment.
Ice I just our discourse to use in this modern enrollment is Visual Studio or application.
So Visual Studio code is a bold plan or auditable by Microsoft, which you can use in different platforms
even be no sleeping Linux, said Mac.
So my system is McCoy, so I have already downloaded the Visual Studio code out of my computer.
So let me show you that Visual Studio code downloaded.
So it's a free software.
You don't need to worry about the licensing, but you can just go to this website and download it from
that website.
So it's very easy to use Visual Studio code, and it's a free software.
So I really just open that Visual Studio code here.
So as you can see over here, this is the start screen of visual studio code.
And one more thing which you have to do while you want to run C++ program in Visual Studio Code is you
can go to the extension part of the this program and you can search for an extension for C or C++.
This extension is very much required to start developing that C++ in your computer so you can install
the C C++ installer like module or extension provided by Microsoft.
This will help you to create the programming environment set up in your computer, and if you want to
compile and run these programs, you can read the documentation provided with this software, where
you will be able to see how you can use the development tools in compiling and running the program.
So let's start.
So here we can create a new file for creating a class C++ program.
The most famous program which program is right in our beginning of our programming studies?
Hello.
So Hollowell Program is a simple program which will display a high level in whatever terminal which
we use.
So here you can see a terminal window in this visual studio code.
And if you're not seeing it in your system, then what do you need to do?
Is like there would be a terminal icon in your original menu bar in your research record that you can
go and create anywhere.
There you will be getting this window going.
So now let's start creating our first program.
So each and every programming language will have a syntax.
So when we create a C++ program, we will require to use a particular syntax when we create our first
program.
So the first mandatory key word, which we use to write C++ program is hash, and then we will give
it that part.
I use dream out.
And so here you can see this statement is quite preprocessor direct.
No, this statement, even if I have wrote it, it's not having any highlight or any difference because
I haven't saved this file C++.
So it's always better to start saving you fine as C++ than the compiler or our C++ I.T., because record
will automatically start suggesting you different syntax and everything so that your programming is
more easier.
So I'm saving this program as Hello World
Dark CBB, so CBB should be the extension of all that C++ programs.
So, no, you can see the syntax is having a different color, and it's highlighted and even everything
will be shown.
Every error message on, every kind of messages will be shown and.
And why we're using this statement, that's one more point which we need to discuss.
So when we use hashing good ice cream, you should know that I use streamy as a file in the system called
I had a fire.
So this header file will be having all that information about the functions and the for things which
we have.
We will be start using in the program.
So we will be using some functions in very final chance to display something right to print something
on the screen for that.
Also, we have a lot of keywords in that C++.
So all these keywords and everything required for the basic running of a program is being designed or
defined inside the your stream, not edge handle.
So in order to include that had a part in our program and using this statement by hashing async and
this statement is called pre-processed back to pre processing backbeat, so we can use a lot of process
narrative that will be meant for each and every function.
We will be having it separate.
Look at that three process of narratives while we navigate on that goal, of course for that.
So now just understand this statement is required for functioning of the C++ program properly.
So this is the preprocessor back.
D. We do have a lot of pre process interactive.
And here you can see I used to double slashes to write that comment.
Common means that's not that program executable statement.
It's not an executable statement.
It just we should be writing a lot of comments throughout the program to understand why that line particularly
means.
So that's good.
Always good practice to use a lot of comments, and we can always use single line comments or multiple
line comments.
So using slash slash and writing something after, it is a single line comment which after this line
that will not be the next statement will not be a comment.
And if you want to write multiple lines of comment that also is possible in C++ that is done with the
help of multi-line common statements like slash star, then start slash.
So why does the peculiarity of this operator this symbol is why does things rewrite inside this same
way?
It will not be compiler run by the program.
It's just for our developers to understand what the coming lines are.
So if you can write even multiple lines inside the statement from the start slash start and then end
start slash, that will be a comment.
So you can even write multiple lines of code inside that, but that does not execute.
So what other things do you again?
I told the multiple lines on this score.
It will not get executed.
You can write whatever you want, but it should be meaningful and it should be something that you can
use to understand what the statements are actually meaning in this program.
So that's why we use comments.
So I'm just deleting this unnecessary comment, and let's go to that next statement of that program.
So next time, using a namespace keyword.
So using namespace SDD.
That is my next link, and I will be putting a semicolon over there.
So this is one basic syntax which a program should have.
So here you can see I have used an keyword card using.
And also I have added namespace and SDD.
So what this line means, these things are like, what are things I write in the program that is in
S-Corp called namespace?
We will be learning more about namespace also.
So you need to need not to worry about this one.
So here in this program, we are using a standard namespace called SDD, which will have more definitions
to input and output statements in that program.