How we can make simple Program in c++ code


It is very easy to make a simple program in c++. Simple structure of program is that first we use the header file like this

#include <iostream>

Than we use the namespace std like this

using namespace std;

Than we use the main function like this

int main() {
}

Code:

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




avatar
AUTHOR: Muhammad Abbas
I am Software Engineer.

0 Comments