In this tutorial I’ll show you how to write and compile a C++ Program using CodeBlocks in Windows. That’s right, Windows.
If you haven’t done so, download and install CodeBlocks
Using CodeBlocks to program Hello World
1. Open up CodeBlocks and simply click on “Create a new project”.

2. In the following window choose Console Application.

3. The next window welcomes you to the application wizard. I’d simply check Skip this Page Next Time and click on Next.

4. Choose C++ project.

5. Type in the appropriate values I have in the following image. If you want, you can change the name of the directory where your project will be saved.

6. For now, simply type in Finish in the next window. No need to change anything.

7. In the Management Tab, Expand Sources, and double click on main.cpp . Unfortunately Hello World is already written for us!

8. Now go to Build -> Build and Run. OR You can simply hit F9 which is the shortcut to build and run your program.

9. Congratulations! You are done!
Useful Resources
C++ Tutorial – Page where our C++ tutorials can be found at.
Hello World – Step by Step telling you what each line of Hello World actually does!
