add graphics to code code example Example: run graphics code in codeblocks initgraph(&gdriver,&gmode,"..\\bgi\\");