First Program in C++

Now that you have know about tools, it is time to program your first C++ program.

Writing a program is first step towards creating an executable. The basic steps in creating applications in C++, If you are on windows, you can follow these steps –

1. Open any text editor and write your code.

2. Save it with any name with .cpp extension.

3. If you are using Turbo C++ press , Ctrl+F9 to run the program.

But we are using Blocks to run C++ code.

Program to print Hello World –

#include <iostream>
using namespace std;

int main() {
  cout << " Hello World ! ";
  return 0;



Hello World !