1. Download and install Code::Blocks here. If you’re on Windows, be careful to select a file for which the name contains mingw, the other files don’t install any compiler.

  2. Open Code::Blocks and click on “Create a new project”:

    https://i.stack.imgur.com/z4Oll.png

  3. Select “Console application” and click “Go”:

    https://s3-us-west-2.amazonaws.com/secure.notion-static.com/6c588d30-af2b-4408-9853-360ca6e5f8fe/Untitled.png

  4. Click “Next”, select “C++”, click “Next”, select a name for your project and choose a folder to save it in, click “Next” and then click “Finish”.

  5. Now you can edit and compile your code. A default code that prints “Hello world!” in the console is already there. To compile and/or run your program, press one of the three compile/run buttons in the toolbar:

    https://s3-us-west-2.amazonaws.com/secure.notion-static.com/8489581f-55d1-4551-ba15-7674b53e0360/Untitled.png

    Compiling and running the default "Hello world!" code gives the following result:

    https://s3-us-west-2.amazonaws.com/secure.notion-static.com/54c19604-835b-451d-86b8-5ff60e803402/Untitled.png