getmaxy


/*
Write a program in C for getmaxy
*/
 
#include<graphics.h>
#include<conio.h>

main()
{
int gd = DETECT, gm, max_y;
 

char array[100];

initgraph(&gd,&gm,"C:\\TC\\BGI");

max_y = getmaxy();

sprintf(array, "Maximum Y coordinate for current graphics mode and driver is = %d.",max_y);
 

outtext(array);

getch();
 

closegraph();
 

return 0;
}

Post a Comment

0 Comments