Skip to content

Logo

Hello, World!

This is a C++ program, which displays the famous "Hello, World!" in the terminal.

hello-world.cpp
1
2
3
4
5
6
7
8
#include <iostream>

int main()
{
    std::cout << "Hello, World!" << std::endl;

    return 0;
}

For comparison, the equivalent Python code looks like the following 😄

print("Hello, World!")

What is C++?

Bjarne Stroustrup

C++ is a general-purpose programming language, created by Bjarne Stroustrup. Over the decades, C++ has become the language of choice for certain kinds of applications. As of September 2022, C++ is ranked 4th in the list of popular programming languages, according to TIOBE index.

What is C++ used for?

  • Operating systems
  • Game development
  • IoT (Internet of Things) devices
  • Databases
  • Machine learning tools
  • Scientific research
  • ...

C++ is most popularly used for building large software infrastructure and applications that run on limited resources. Because C++ can directly manipulate the hardware (or machine) that it runs on, programmers can fine-tune their code to run efficiently in any environment, even when there’s limited hardware space or energy available to power the application ... read more