C / conio.h / wherey
cgets, clreol, clrscr, cprintf, cputs, cscanf, delline, getch, getche, getpass, gettext, gettextinfo, gotoxy, highvideo, inport, insline, kbhit, lowvideo, movetext, normvideo, outport, putch, puttext, _setcursortype, textattr, textbackground, textcolor, textmode, ungetch, wherex, » wherey, window,
Funcion: wherey()
Sintaxis:
Descripcion: Obtiene la coordenada y de la posición del cursor actual (dentro de la ventana de texto en uso).
Ejemplo:
Sintaxis:
int wherey(void);
Descripcion: Obtiene la coordenada y de la posición del cursor actual (dentro de la ventana de texto en uso).
Ejemplo:
#include <conio.h> int main() { clrscr(); cprintf( "Ejemplo de \"wherex\" y \"wherey\"\r\n\r\n" ); cprintf( "La posición del cursor es: (%d,%d)\r\n", wherex(), wherey() ); cprintf( "Pulsa una tecla para continuar..." ); getch(); return 0; }