How to use Code Block


How to Download / Install Code Block ( in 3 steps )

  1. Download from here    :    filehippo  or  mydrive
  2. Install  setup ( yes > next > I Agree > next > install )
  3. click - Yes, associate Code::Block with every supported type 

How to create / run C program in Code Block ( in 5 steps )

  1. open Code Block
  2. file > new > empty file  / ctrl-shift-N
  3. save as  .c file type
  4. Compile ( Build >compile  / ctrl-shift-F9 )
  5. Run ( Build > run / ctrl-F10)
 ----------------------------------           Example        ---------------------------------

How to create / run Cpp program in Code Block ( in 3 steps )

  1. Use #include<iostream>  (  not these : #include<iostream.h>)
  2. Put std:: before cout<< , cin>> & <<endl 
  3. save as .cpp fle type
  4. select Compiler - setting > compiler > then 
  5. tick - gcc compiler
 ----------------------------------        Example      ------------------------------------

How to create / run Graphics program in Code Block ( in 6 steps )

  1. First download WinBGIm , then Extract it.
  2. Copy graphics.h and winbgim.h files in include folder of your compiler directory
  3. Copy libbgi.a to lib folder of your compiler directory
  4. In code::blocks open Settings >> Compiler and debugger >>linker settings click Add button in link libraries part and browse and select libbgi.a file
  5. In right part (i.e. other linker options) paste commands -lbgi -lgdi32 -lcomdlg32 -luuid -loleaut32 -lole32
  6. Click OK
 ----------------------------------           Example     ------------------------------------

No comments:

Post a Comment