First Turbo Graphics Program in C Language

First Graphic Program [crayon-5f364818f08a0718015103/] Requirement to Run This ProgramGraphics.h Header File Graphics.lib library file Graphics driver (BGI file) 640x480 VGA monitorHeader File : graphics.hAll Graphical Functions are Included in Graphics.h After Including graphics.h Header File [ You can get access graphical functions ]You must Know Following Things before Learning Turbo Graphics InitGraph :Initializes the graphics system. In C Program execution starts with main() similarly Graphics Environment Starts with this function. initgraph() initializes the graphics system by loading a graphics driver from disk (or validating a registered driver) then [...]

Printing Text in Graphics Using Outtextxy Function

Program : [crayon-5f364818f0bed205156663/] Explanation : [crayon-5f364818f0bf4761291914/]This Function is Similar to Printf Statement. Printf Prints Text on Screen in "Text Mode" while outtextxy() function Prints Text onto Screen in "Graphics Mode". This Function Accepts 3 Parameters.Syntax : [crayon-5f364818f0bf8891900016/]Parameter ExplanationX_Co-ordinate Specifies X Co-ordinateY_Co-ordinate Specifies Y Co-ordinateText String/Text to be Printed On the Specified Co-ordinates

C Program to check if mouse support is available or not.

Program : [crayon-5f364818f1674284107580/] Output : [crayon-5f364818f167b142901315/]Explanation :Int86() is a C function that allows to call interrupts in the C program Header File : dos.h[crayon-5f364818f167f517959594/]In and out register must be type of REGS. REGS is a built in UNION declaration in C. It is defined in the header file <dos.h>