hello everyone and welcome back
in the previous lecture we have seen the
introduction to c plus plus programming
and in this lecture we are going to
learn about how to write a simple
c plus program so there are many things
that are there that we need to know
about
while coding in c plus so here in this
lecture we will study about the very
basics and we will see what are the
main or the basic things that are there
that we need to know in writing a simple
c
plus plus program okay so let's get
started so coming to writing a simple c
plus plus program
the first thing that we need to know is
about functions
now let's see what is a function every c
plus plus program contains one or more
functions one of which must be named
main
now if you're new to programming you may
not know what is the meaning of function
but if you already have some idea about
programming then you may know what a
function is so we are going to study
about detail in function in the coming
lectures but for now
, just understand that function is nothing
but it's a block of code
that is going to perform some operation
okay so every program in c
plus must contain at least one function
and
one of the function must be named main
so this is very important the main
function
is one of the most important functions
and the operating system
runs a c plus program by calling me
so whenever you run a c plus plus
program the first function that is going
to be called
is the main function so from the name
itself just try to understand
what is mean main means it is a main
thing so the main function is going to
be called
first whenever we run a program in c
plus plus okay so keeping that in mind
let us see the structure of a main
function
how it looks like and what are the
things it contains so here we see
a simple version of main that does
nothing but
return a value to the operating system
in the previous lecture we have seen the
introduction to c plus plus programming
and in this lecture we are going to
learn about how to write a simple
c plus program so there are many things
that are there that we need to know
about
while coding in c plus so here in this
lecture we will study about the very
basics and we will see what are the
main or the basic things that are there
that we need to know in writing a simple
c
plus plus program okay so let's get
started so coming to writing a simple c
plus plus program
the first thing that we need to know is
about functions
now let's see what is a function every c
plus plus program contains one or more
functions one of which must be named
main
now if you're new to programming you may
not know what is the meaning of function
but if you already have some idea about
programming then you may know what a
function is so we are going to study
about detail in function in the coming
lectures but for now
, just understand that function is nothing
but it's a block of code
that is going to perform some operation
okay so every program in c
plus must contain at least one function
and
one of the function must be named main
so this is very important the main
function
is one of the most important functions
and the operating system
runs a c plus program by calling me
so whenever you run a c plus plus
program the first function that is going
to be called
is the main function so from the name
itself just try to understand
what is mean main means it is a main
thing so the main function is going to
be called
first whenever we run a program in c
plus plus okay so keeping that in mind
let us see the structure of a main
function
how it looks like and what are the
things it contains so here we see
a simple version of main that does
nothing but
return a value to the operating system