Page not found
Search results
traffic light program in c, traffic light simulation
Traffic light Simulation: Traffic light program in C presents what happens in our daily life at traffic light signals. Firstly ... will press a key to start the traffic light simulation. C program #include<graphics.h> #include<conio.h> ...
Yogesh Suneja - 23/11/2019 - 11:40
C++ program to reverse a string
C++ program to reverse a string that a user will input, for example, if the ... enters "hello," then "olleh" will be printed as output. C++ program #include <iostream> #include <cstring> using ...
Yogesh Suneja - 23/11/2019 - 12:08
C program to determine which mouse button is clicked
... Program to determine which mouse button is clicked */ C program #include<graphics.h> #include<conio.h> ... 50 ] ; initgraph ( & gd ,& gm , "C: \\ TC \\ BGI" ) ; settextstyle ( DEFAULT_FONT , 0 ...
Yogesh Suneja - 23/11/2019 - 11:40
getmaxx and getmaxy functions in C
... Y coordinate for current graphics mode and driver. C program #include<graphics.h> #include<conio.h> ... ] ; initgraph ( & gd ,& gm , "C: \\ TC \\ BGI" ) ; X = getmaxx ( ) ; ...
Yogesh Suneja - 23/11/2019 - 11:40
C program to display mouse pointer in graphics mode
... mode is initialized and then mouse using initmouse. C program #include<graphics.h> #include<conio.h> ... , gm ; initgraph ( & gd ,& gm , "C: \\ TC \\ BGI" ) ; status = initmouse ( ) ; ...
Yogesh Suneja - 23/11/2019 - 11:40
Textheight and textwidth functions in C
... function returns the width of a string in pixels. C program #include <graphics.h> #include <stdio.h> ... ] ; initgraph ( & gd , & gm , "C: \\ TC \\ BGI" ) ; a = textheight ( "H" ) ; ...
Yogesh Suneja - 23/11/2019 - 11:40
C program to restrict mouse pointer
... rectangle. /* Program to restrict mouse-pointer */ C program #include<dos.h> #include<graphics.h> ... , gm ; initgraph ( & gd ,& gm , "C: \\ TC \\ BGI" ) ; settextstyle ( DEFAULT_FONT , 0 ...
Yogesh Suneja - 23/11/2019 - 11:40
C program to hide mouse pointer
... Program to show and hide mouse-pointer alternatively */ C program #include<graphics.h> #include<conio.h> ... , gm ; initgraph ( & gd ,& gm , "C: \\ TC \\ BGI" ) ; status = initmouse ( ) ; ...
Yogesh Suneja - 23/11/2019 - 11:40
fillpoly function in c
... and color which can be changed using setfillstyle . C program #include <graphics.h> #include <conio.h> main ( ... } ; initgraph ( & gd , & gm , "C: \\ TC \\ BGI" ) ; fillpoly ( 4 , points ) ...
Yogesh Suneja - 23/11/2019 - 11:40
C program to get current position of mouse pointer
... to get mouse-pointer coordinates - where is the mouse */ C program #include<graphics.h> #include<conio.h> ... 50 ] ; initgraph ( & gd ,& gm , "C: \\ TC \\ BGI" ) ; settextstyle ( DEFAULT_FONT , 0 ...
Yogesh Suneja - 23/11/2019 - 11:40