Page not found
Search results
Print numbers without using loops
C program to print first n natural numbers without using any loop (do-while, ... i.e., without creating any function other than main. C program using recursion #include <stdio.h> void print ( ... without loop program. Output of program: C program using goto #include <stdio.h> int main ( ) ...
Yogesh Suneja - 09/10/2020 - 22:48
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