How to create a First program in c++

                My First Program

In this lesson we will create a create a simple program named "hello world "  in c++ programming.


A "HELLO WORLD" is a simple program that gives" Hello, world" as output on the screen.

Let's start our our first program.

                                    C++ hello, world program 



#include<iostream.h>
int main()
  {
      cout<<"hello, world";
      return 0;
   };





output:- hello, world


                                       c++ program details

1.#include
 It is the preprocessor directive which is used to include files in our program.

2.cout
 It is used to print output to the screen.

3.Int main()
c++ program must have the main() function. The curly braces indicates the start and the end of the function.

Note:-  ; is used to indicate the end of the statement.

4.Return 0;
It is the "EXIT STATUS " of the program.





               Practically in the Turbo c++ 



for any other inquiry email me:-amitkumar9717556582@gmail.com



Post a Comment

if you have any doubt,let you know me

أحدث أقدم