Log in from a computer to take this course

You'll need to log in from a computer to start Learn C++. But you can practice or keep up your coding streak with the Codecademy Go app. Download the app to get started.

apple storegoogle store
Learn

Congratulations! πŸ™Œ

In this lesson, you have learned:

  • Compilation and execution using the terminal.
g++ hello.cpp -o hello
./hello
  • Single line comments can be created using //.
  • Multi-line comments can be created using /* */.

Instructions

If you are still feeling iffy about using the terminal, take a look at the Learn the Command Line lesson.

Take this course for free

Mini Info Outline Icon
By signing up for Codecademy, you agree to Codecademy's Terms of Service & Privacy Policy.

Or sign up using:

Already have an account?