BEST TUTORIAL FOR PROGRAMMING        
BEST TUTORIAL FOR PROGRAMMING

Code Blocks

Code Blocks is a free and open-source cross-platform (Windows,Unix/Linux, MacOS) IDE. It supports multiple compilers such as GCC, Clang, Visual C++ and MinGW. It is developed in C++ using wxWidgets as the GUI toolkit. We will recommend Code blocks IDE for C programming.

For more information, you can visit official website of Code Blocks.




How to install Code Blocks

?

Here, we will learn that how to download and install Code Blocks for Windows, but Code Blocks is available for different platforms, so you can download and install it according your system or platform.



Following steps, We need to follow to download and install

Code Blocks for Windows

:

1  Click on this link to download Code Blocks


download and install code blocks
download and install code blocks

On this page click on 'Download the binary release'


2  On this page, select your operating system platform (Windows 2000 / XP / Vista / 7) and download the installer with GCC Compiler.


downloading code blocks
downloading code blocks

As soon as you click on selected platform, downloading will be started automatically after few seconds.


3  As soon as downloading completes. Go to Download folder or directory and double clicks on downloaded Code Blocks installer file. After few seconds a window will open "User Account Control". on this window click on "Yes" to allow installation.


4  On this window click on "Next".


install code blocks
install code blocks

5  On this window click on "I Agree".


agreement code blocks
agreement code blocks

6  On this window choose components and click on "Next".


choose components for code blocks
choose components for code blocks

7  On this window click on "Install".


install code blocks
install code blocks

8  If you want to open Code Blocks now, so click on "Yes" otherwise click on "No".


finalize code block
finalize code block

9  Suppose you click on "Yes", then on this windows click on "Finish".


open code block
open code block

10 congratulations !!, You have been successfully installed Code Blocks IDE for Windows.


code block is ready for use
code block is ready for use



How to use Code Blocks

?

We can use Code Blocks for C programming very easily and Code Blocks makes creating C programs and applications simple for us.



Following steps, We need to follow to use

Code Blocks for C programming

:

1 Open Code Blocks : Go to Desktop and double clicks on Code Blocks icon or click on Windows's start menu and then click on All Programs and find Code Blocks from list and click on it.


2 After Opening : Click on File Menu and then click on New option and then click on Empty File or press Ctrl+N.


3 Type or Enter Code : Type or enter code like this.


write code for C program in code blocks
write code for C program in code blocks

4 Save Source File : Click on File Menu and select Save File option or press Ctrl+S. After that a window will open and on this window type File name with c or cpp extension like hello.c / hello.cpp after that click on Save button.


5 Run Program : Click on Build Menu and select Build and run option or press F9. After that a window will open.


run c program in code blocks
run c program in code blocks

6 congratulations !!, You have been successfully used Code Blocks IDE in Windows.



NOTE : We will use Code Blocks IDE for C programming in this tutorial.