How to Download / Install Code Block ( in 3 steps )
- Download from here : filehippo or mydrive
- Install setup ( yes > next > I Agree > next > install )
- click - Yes, associate Code::Block with every supported type
How to create / run C program in Code Block ( in 5 steps )
- open Code Block
- file > new > empty file / ctrl-shift-N
- save as .c file type
- Compile ( Build >compile / ctrl-shift-F9 )
- Run ( Build > run / ctrl-F10)
---------------------------------- Example ---------------------------------
How to create / run Cpp program in Code Block ( in 3 steps )
- Use #include<iostream> ( not these :
#include<iostream.h>) - Put std:: before cout<< , cin>> & <<endl
- save as .cpp fle type
- select Compiler - setting > compiler > then
- tick - gcc compiler
---------------------------------- Example ------------------------------------
How to create / run Graphics program in Code Block ( in 6 steps )
- First download WinBGIm , then Extract it.
- Copy
graphics.handwinbgim.hfiles in include folder of your compiler directory - Copy
libbgi.ato lib folder of your compiler directory - In code::blocks open Settings >> Compiler and debugger >>linker settings click Add button in link libraries part and browse and select
libbgi.afile - In right part (i.e. other linker options) paste commands
-lbgi -lgdi32 -lcomdlg32 -luuid -loleaut32 -lole32 - Click OK
No comments:
Post a Comment