Hello world program in c++




This video introduces you to the world of c++. You are gonna write your first program in c++.
This tutorial explains the structure of a c++ program. You will learn what are pre processor directives and how to use them to include files to a c++ program, what are the functions, what is function body, what are statements in a c++ program,how to write the main function, from where the c++ program starts execution, what is the value returned by the main function in a c++ program in detail.

Source Code for the Hello world program
#include <iostream>
#include <cstdlib>
 
using namespace std;
 
int main()
{
    cout << "Hello world!"; // printing message to screen
 
    system("PAUSE"); //adding a pause to your program
    return 0;
}