Skip to Content
Learn
Hello World
Hello World!

Take a look at the hello.cpp file in the code editor that is placed in the middle of the screen. It’s a C++ program!

In our code editor, the file name is displayed at the top:

File

C++ programs are stored in files which usually have the file extension .cpp, which simply stands for β€œC Plus Plus”.

The code inside our C++ file is a classic first step all new programmers take β€” they greet the world through the terminal!

The terminal is the black panel on the right. It should be blank right now. The code in the text editor will print text out onto the terminal. More specifically, it will print the phrase Hello World!.

Before we explain what all that mumbo jumbo is, let’s run the program to see what happens.

Instructions

1.

Press Run to see this program in action.

What message appeared in the terminal?

Folder Icon

Take this course for free

Already have an account?