In: Computer Science
Introduction to CodeBlocks and C/C++ Program.
Code Block is one of the Open source platform/IDE that is support for C, C++, and Fortran program.
This IDE is compatible with various Windows Operating System, MAC, Linux.
For using Code Block we have to download it from CodeBlock.org and click on the download option to download according to your OS.
Starting with Code Block for C program
Create Project Option >> Console Application>> Go >> Next >> select language C / C++ >> Next >> project title >> folder to create project in >> Next >> select compiler >> finish.
Now a code window open with the name of your program on the left-hand side of the window in the project option
and you can click on the project name then click on the sources option and click on the main.c option to open your code file and you just type your code and click on save and build your project.
For build click on the build option available in the menu bar and then click on the run button.
First, your program is compiled and generate a .o file and then it created an exe file means
.c ------> .o------> .exe
After build successfully click on the run button to see the result.
In case if you make any mistake in the program :
The compiler shows a warning message or for statement missing it mark a red block in front of that line which indicates that something is wrong.
Example program in CodeBlocks
Thank you.................