All lessons

Your First Program

6 min · C++

Write and run your very first C++ program — right here on the page.

C++ · Your First Program0/5 cleared

Enemy 1 of 5

A C++ program starts in main. The first line pulls in input/output tools; focus on the cout line in the middle.

cout << sends text to the screen. endl ends the line. Press Run.

You
Pincer Crab

Loading editor...

Ln 1, Col 1Spaces: 4
Sign up to fightTarget output: Hello, World!