C Program to Draw Resistance using Graphics Function.
⦁ InitGraph initializes the graphics system by loading a graphics driver from disk then putting the system into graphics mode
⦁ outtextxy(x,y,"Resistor");
⦁ It is similar to printf statement. Prints text on a screen in Text Mode while outtextxy( ) function prints Text onto screen in Graphics Mode. This function accepts 3 parameters.
⦁ X Co-ordinate - Specifies X Co-ordinate
⦁ Y Co-ordinate - Specifies Y Co-ordinate
⦁ Text - String/Text to be printed on the specified Co-ordinates.
⦁ closegraph( ) function switches back the screen from graphics mode to text mode.
--------------------------------------------------------------------------------------------------------------------------
EmoticonEmoticon