Site icon

C++ Program Structure


In this tutorial, we will look at the basic C++ Program Structure. We will use Code::Blocks IDE.


Simple C++ Program

A simple C++ program that prints Hello, World! message to the console.

* Hello World C++ Program
* Filename: main.cpp
* C++ Tutorials -
// C++ Header library
#include <iostream>
using namespace std;
// Entry Point : main() is where program execution starts.
int main()
    cout << "Hello, World!"; // print Hello World message
    return 0;

Code::Blocks Tutorials

Code::Blocks Tutorials on this website can be found at:

For more information on Code::Blocks IDE, visit the official website:

Exit mobile version