User Tools

Site Tools


Sidebar

Programming Reference/Librarys

Question & Answer

Q&A is closed







c:conio.h:wherex
click
to support this page (eg 0,42 € or so) Thanks.

wherex

int wherex();

description of wherex

return current horizontal cursor position

#include<stdio.h>
#include<conio.h>
 
int main( void )
{
   int x;
   printf("The answer is almost 42\n");
   x = wherex();
   printf("horizontal cursor position from where this text appears = %d\n",x);
   return 0;
}

output of wherex example

  The answer is almost 42
  horizontal cursor position from where text appears = 1

advertising
c/conio.h/wherex.txt · Last modified: 2013/02/12 23:20 by 158.181.88.241

Impressum