Cleardevice() function erases the graphics screen and moves the cursor position to home that is(0,0). Erasing here means filling current background colour. This function takes no arguments.
Floodfill function when executed fills an enclosed area with the colour and pattern to be inserted given by the user. The pattern to be filled is given through setfillstyle() function.
Graphics is one of the main feature of c++. By using Graphics we can draw any shape.#include<graphics.h> header files defines a number of graphics function like
Point…….simply a pair(x,y)representing a coordinate in the window
Circle…….defines by a point and a radius
Line………Two points one is starting point and other is the end point
Message…..Used to display in the graphics window.