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
- What is #include, why we use
- what is <iostream> and why we use
- what is the namespace and why we use
- What is std and why use
- int main
- what is the main
- What is cout
- what is return
- and why we use 0 in return
ANSWER FOR THOSE QUESTIONS
1. #includeWhen 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