Back to Cosmos

Cosmos Guide: Getting Ready to program in C++ in Windows

guides/installation_guides/c++/windows/README.md

latest1.8 KB
Original Source

Cosmos Guide: Getting Ready to program in C++ in Windows

<b1> <b>Getting The Software</b> </b1>

The easiest way for a beginner to start working on his first C++ program is to get an IDE. In this tutorial we are going to use CodeBlocks.

You can get Codeblocks from the Official Site: http://www.codeblocks.org/downloads

Click on <b>Download the binary release</b>

Look after codeblocks's <b>mingw-setup.exe</b>, it may be a different version than the one in the screenshot (16.01) but it does not matter. Click on the <b>SourceForge</b>

After that you can just wait, and an installer should be downloaded. Follow all the steps, click on all the <b>Next</b>s, no custom non-default options are required.

Once Codeblocks has been installed, an <b>Autodetection Compiler</b> prompt should appear. Click <b>OK</b>.

Once Codeblocks starts, click on <b>Create Project</b>

Double click on <b>Console Application</b>

Click on <b>Next</b>s, Name your project, and you should be ready to go! Make sure the <b>Main.cpp</b> file is open, you can write your code there! Make sure to click on the <b>gear and play</b> icon to compile and run your code.

<p align="center"> A massive collaborative effort by <a href="https://github.com/OpenGenus/cosmos">OpenGenus Foundation</a> </p>