gety function returns the y coordinate of current position.
Declaration :- int gety();
Declaration :- int gety();
C programming source code for gety
#include <graphics.h> #include <conio.h> main() { int gd = DETECT, gm, y; char array[100]; initgraph(&gd, &gm, "C:\\TC\\BGI"); y = gety(); sprintf(array, "Current position of y = %d", y); outtext(array); getch(); closegraph(); return 0; }
No comments:
Post a Comment