getmaxx

Overview :

The "getmaxx" function is used to get the maximum value of the x co-ordinate in the current graphics mode and driver.

Syntax :
int getmaxx();
Description :

The "getmaxx" function has no parameters


  • The function can be called in grahics mode.

  • The function return the maximum value of the x co-ordinate



Example :
#include <graphics.h>
 #include <stdlib.h>
 #include <stdio.h>
 #include <conio.h>

 int main()
 {
   int gm,gd=DETECT;
   
   initgraph(&gd,&gm,"C:\\turboc3\\bgi");
   setcolor(10);
   
   int x = getmaxx();
   
   printf("\nThe maximun value of x is %d",x);
   
   getch();
   closegraph();
   return 0;
 }

Comments

comments powered by Disqus