JetBrains Academy logo
Free courseby JetBrains s.r.o.

C++Basics

This course is designed for beginners who want to learn the basics of the C/C++ language. After successfully completing this course, you will be able to read and write C++ code and develop your own multi-file programs of medium complexity.

LevelBeginner
Time commitment26 days

You'll take this course in your JetBrains IDE.
Just install JetBrains Toolbox, and we'll handle the rest!

About this course

The main goal of the course is to introduce the C++ language, its philosophy of zero-cost abstractions; its distinctive features compared to other languages, and, in particular, manual memory management, and its areas of use, such as high-performance applications, graphics, and system programming.

During this course, you will be developing a simple 2D arcade game. In this game, the player controls a planet that moves through space, consuming smaller asteroids and dodging black holes. With each new topic covered, you will improve the game by implementing new functionality based on the concepts you have learned, among other things: object-oriented and template meta-programming in C++.

This course runs directly in your JetBrains IDE

Learn more

Content

  1. First program
  2. On types of variables in C++
  1. Start the Game
  2. Move an Object
  3. Giving Direction
  4. Draw a Line
  5. Running in a Loop
  6. Hunting Bugs
  7. Play Around
  1. Pointers
  2. Swap
  3. Null pointer
  4. Pointer Arithmetics
  5. Arrays memory layout
  6. Function pointers
  7. Static memory
  8. Stack memory
  9. Dynamic memory
  10. Copy array
  11. Memory errors
  1. Doubly linked list
  1. const keyword
  2. Mutable or immutable
  3. References
  4. Swap again
  5. Passing arguments
  1. C and C++ styles
  2. C style type casts
  3. Choose valid type cast
  4. C style strings
  5. C style strings concatenation
  6. C style strings splitting

How it looks like

Getting started

  • 1

    Install the JetBrains Toolbox App

    This is an IDE course, and we’ve already taken care of the settings. Just install JetBrains Toolbox, and we'll handle the rest.

    Download Toolbox
  • 2

    Start the course in your JetBrains IDE

    Press the button below and click Allow to open the Toolbox App. Once your IDE is open, click Start to begin your course.

    Open course
For additional help, check out our Troubleshooting guide

FAQ

Yes, you will need the JetBrains Toolbox App and a JetBrains IDE.

But don’t worry! Just click the Open course button and then select Allow in the resultant popup to install the JetBrains Toolbox App. We've taken care of all the necessary settings, and the app will handle the rest of the setup for you.

The JetBrains Toolbox App checks which IDE is compatible with your course and whether it is installed on your computer. If you have the necessary IDE installed, the app will open it. If not, JetBrains Toolbox will initiate the installation, prioritizing free community editions.

Yes, the JetBrains Toolbox App is essential even if you already have a JetBrains IDE. It automatically prepares your IDE for studying by installing the essential plugins and updating the IDE if necessary.

Please make sure your version of the JetBrains Toolbox App is 1.28 or newer. To update, open the app and click Update Toolbox App to 2.x.x., or download the latest version here.

Yes, the course is free, but it requires a licensed version of CLion. If you don't have one, please claim a 30-day free trial or take advantage of our free student license offer. For further details, see our Subscription Options and Pricing page.

There might be an issue with the settings. To resolve this issue, follow these steps:

  1. Go to Settings | Advanced Settings.
  2. Ensure that Use the ReSharper C++ language engine (CLion Nova) is disabled.
  3. If it is enabled, disable it and restart your IDE.

These steps should help launch the tests successfully.