How To Write Hello World in C++ Programming Language

How To Write Hello World in C++ Programming Language


How To Write Hello World in C++ Programming Language
C++ Hello World with all problems

So we are writing Hello World in C++ programming language. I'm using Windows as an Operating System and IDE VSCode and complier are Mingw.

The Hello Word Programme

#include<iostream>
using namespace std;
int main()
{
    cout<<"Hello Word";
    return 0;
}



Questions for This Program

  1. What is #include, why we use
  2. what is <iostream> and why we use
  3. what is the namespace and why we use
  4. What is std and why use
  5. int main
  6. what is the main
  7. What is cout
  8. what is return 
  9. and why we use 0 in return 

ANSWER FOR THOSE QUESTIONS

1. #include
When we are writing a C++ Program. we need to add some Header file. So #include is used to add the Header file to the program. In Header file has already defined the function we are using in the program.

Example: I'm using <iostream>  Header File by #include because in this file has already defined many Function and Variables so don't need to define any functions and think more
we are using Header file for a done job fast and easily

2. <iostream>
It's is a Header file using for taking input and output from user and program so we used this Header file but in the next tutorial,
we are using more header files in our program

baki bata pina bad

Give Same Suggestion