Graphics.h In Code::Blocks

1. Download the pack: Graphics
2. Extract Graphics.rar and
    Copy the file "graphics.h" to "C:\Program Files (x86)\CodeBlocks\MinGW\include"
    Copy the file "libbgi.a" to "C:\Program Files (x86)\CodeBlocks\MinGW\lib"

3. In CodeBlocks, Choose "Settings" -> "Compiler"
   Then, in the  tag "Linker settings", choose "Add" and add "C:\Program Files (x86)\CodeBlocks\MinGW\lib\libbgi.a"
    Next, add "-lbgi -lgdi32 -lcomdlg32 -luuid -loleaut32 -lole32" to Other linker options at right.

4. Create a  C++ project, and use the code below to test if it works.

4/17 update
Show chinese character in console
Settings -> Compiler -> Other options
Add -fexec-charset=BIG-5