Tutorial will explain you C Program to Hide Mouse Pointer . In Dos Programming we can use interrupts and can code to hide C Program.
First Graphic Program [crayon-60fb9cebeb1e2579912913/] Requirement to Run This Program Graphics.h Header File Graphics.lib library file Graphics driver (BGI file) 640x480 VGA monitor Header File : graphics.h All 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 [...]
Program : [crayon-60fb9cebeb534978463874/] Explanation : [crayon-60fb9cebeb53b153421819/] 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-60fb9cebeb53f158642742/] Parameter Explanation 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
Program : Draw Op-amp in C Programming Using Graphics Function [crayon-60fb9cebebbec684546313/] Drawing Opamp In C Programming : To Draw Op-amp We need 3 Horizontal Lines 3 Vertical Lines 2 Slant Lines Note : Co-ordinates are Shown in Fig. [Call Line Function by Passing End Co-ordinates ]
Program : [crayon-60fb9cebec2ec633814533/] Output : [crayon-60fb9cebec2f3684871258/] Explanation : Int86() is a C function that allows to call interrupts in the C program Header File : dos.h [crayon-60fb9cebec2f7535610361/] 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>
Program : [crayon-60fb9cebec70c423500312/] Explanation : [crayon-60fb9cebec715404656472/] Circle Function Draws Circle having Center (x,y) and Radius 'rad' Syntax : [crayon-60fb9cebec718678961888/]