Back to Course

Introduction to C++

0% Complete
0/0 Steps
  1. C++: Basics
    6 Quizzes
  2. C++: Compilation and Execution
    6 Quizzes
  3. C++: Variables
    10 Quizzes
  4. C++: Conditions Operators
    6 Quizzes
  5. C++: Logical Operators
    4 Quizzes
  6. C++: Loops and Errors
    9 Quizzes
  7. C++: Vectors
    3 Quizzes
Lesson 1, Topic 2
In Progress

C++: Hello World!

Yasin Cakal 26 Oct 2021
Lesson Progress
0% Complete

The programs for the C++ language are stored in files with .cpp extension, which is an acronym for ‘C Plus Plus.’ Everyone entering the programming world starts with a greeting, and this greeting is displayed through a terminal.

Now, what is a terminal? It is a panel where we can see the output of the programs we’re trying to execute. The code entered in the text editor, when executed, displays its output on the terminal. For your first program, let’s print Hello, World! on to the terminal.

To begin, enter the following code into your text editor and check the terminal for output.

#include <iostream>

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


Hello, World!

Congratulations! You just executed your first program.

Let’s move on to the topics ahead to understand what this code was about.

%d bloggers like this: