Saturday, April 6, 2013

wherey in c

wherey function return current vertical cursor position.
Declaration :- int wherey();

C programming code for wherey

#include<stdio.h>
#include<conio.h>
 
main()
{
   int y;
 
   printf("Hello\n");
 
   y = wherey();
 
   printf("Vertical cursor position from where this text appears = %d",y);
 
   getch();
   return 0;
}

No comments:

Post a Comment