Hello World
Write, compile, and execute your first C++ program!
StartKey Concepts
Review core concepts you need to learn to master this subject
New Line
Program Structure
Basic Output
Compile Command
Execute Command
Single-line Comments
Multi-line Comments
New Line
New Line
std::cout << "Hello\n";
std::cout << "Hello again\n";
The escape sequence \n
(backward slash and the letter n) generates a new line in a text string.
Hello World
Lesson 1 of 2
- 1There are only two kinds of languages: the ones people complain about and the ones nobody uses. C++ is a programming language created by [Bjarne Stroustrup](https://news.codecademy.com/bjarne-st…
- 2Take 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](https:/…
What you'll create
Portfolio projects that showcase your new skills
How you'll master it
Stress-test your knowledge with quizzes that help commit syntax to memory